#include <TAO.h>
Classes | |
struct | Cleanner |
struct | Option |
Public Types | |
typedef boost::function < decision_making::TaskResult(void)> | Callback |
Public Member Functions | |
void | add (std::string name, bool isReady, Callback cb) |
virtual bool | decide ()=0 |
Callback | getCallback () const |
ProtocolAllocation (int &res, decision_making::CallContext *call_context, decision_making::EventQueue *events) | |
virtual | ~ProtocolAllocation () |
Protected Attributes | |
decision_making::CallContext * | call_context |
decision_making::EventQueue * | events |
int | opt_counter |
std::vector< Option > | options |
int & | result |
typedef boost::function<decision_making::TaskResult(void)> decision_making::ProtocolAllocation::Callback |
decision_making::ProtocolAllocation::ProtocolAllocation | ( | int & | res, |
decision_making::CallContext * | call_context, | ||
decision_making::EventQueue * | events | ||
) | [inline] |
virtual decision_making::ProtocolAllocation::~ProtocolAllocation | ( | ) | [inline, virtual] |
void decision_making::ProtocolAllocation::add | ( | std::string | name, |
bool | isReady, | ||
Callback | cb | ||
) | [inline] |
virtual bool decision_making::ProtocolAllocation::decide | ( | ) | [pure virtual] |
Implemented in decision_making::_AllocPEMPTY, AllocFirstReady, and decision_making::AllocFirstReady.
Callback decision_making::ProtocolAllocation::getCallback | ( | ) | const [inline] |
int decision_making::ProtocolAllocation::opt_counter [protected] |
std::vector<Option> decision_making::ProtocolAllocation::options [protected] |
int& decision_making::ProtocolAllocation::result [protected] |