ActiveObjectAce interface. More...
#include <ActiveObjectAce.hpp>
Public Member Functions | |
ActiveObjectAce (ActiveObjectManager *aom) | |
virtual void | addTask (shared_ptr< Task > t) |
This method adds a task to be executed by the ActiveObject. | |
virtual void | addTaskInternal (shared_ptr< Task > t) |
shared_ptr< CommunicationGateway > | getCommunicationGateway () |
Getter for the communication gateway. | |
ActiveObjectState | getState () |
Getter for the current state of the ActiveObject. | |
std::string | getStateString () |
Gets a string representation of the current ActiveObject's state. | |
void | start () |
void | stop () |
Static Public Member Functions | |
static std::string | getStateString (ActiveObjectState state) |
Helper function that translates a given ActiveObjectState to a string. | |
Protected Member Functions | |
virtual void | addTaskImplementation (shared_ptr< Task > t) |
void | setState (ActiveObjectState s) |
Setter for the current state of the ActiveObject. | |
Protected Attributes | |
ActiveObjectManager * | aoManager_ |
Reference to the ActiveObjectManager instance. | |
shared_ptr< TaskScheduler > | taskScheduler_ |
Reference to the TaskScheduler used by this ActiveObject. | |
Friends | |
class | ActiveObjectAceAddTaskMethod |
class | ActiveObjectAceRunTaskMethod |
class | ActiveObjectManager |
ActiveObjectAce interface.
Definition at line 43 of file ActiveObjectAce.hpp.
void ActiveObjectAce::addTask | ( | shared_ptr< Task > | t | ) | [virtual] |
This method adds a task to be executed by the ActiveObject.
It should only be called from OUTSIDE the context of an ActiveObject. Calling it in the context of an ActiveObject will block the ActiveObject.
Reimplemented from mermaid::support::activeobject::ActiveObject.
Definition at line 230 of file ActiveObjectAce.cpp.
shared_ptr< CommunicationGateway > ActiveObject::getCommunicationGateway | ( | ) | [inherited] |
Getter for the communication gateway.
This methd should only be used in the execution context of the ActiveObject
Definition at line 123 of file ActiveObject.cpp.
ActiveObjectState ActiveObject::getState | ( | ) | [inherited] |
Getter for the current state of the ActiveObject.
Definition at line 62 of file ActiveObject.cpp.
std::string ActiveObject::getStateString | ( | ActiveObjectState | state | ) | [static, inherited] |
Helper function that translates a given ActiveObjectState to a string.
state | The state for which a string representation is needed. |
Definition at line 72 of file ActiveObject.cpp.
std::string ActiveObject::getStateString | ( | ) | [inherited] |
Gets a string representation of the current ActiveObject's state.
Definition at line 67 of file ActiveObject.cpp.
void ActiveObject::setState | ( | ActiveObjectState | s | ) | [protected, inherited] |
Setter for the current state of the ActiveObject.
s | State to which the ActiveObject should be set. |
Definition at line 102 of file ActiveObject.cpp.
void ActiveObjectAce::start | ( | ) | [virtual] |
this method start the active object.
Implements mermaid::support::activeobject::ActiveObject.
Definition at line 63 of file ActiveObjectAce.cpp.
void ActiveObjectAce::stop | ( | ) | [virtual] |
this method stop the active object.
Implements mermaid::support::activeobject::ActiveObject.
Definition at line 77 of file ActiveObjectAce.cpp.
ActiveObjectManager* mermaid::support::activeobject::ActiveObject::aoManager_ [protected, inherited] |
Reference to the ActiveObjectManager instance.
Definition at line 143 of file ActiveObject.hpp.
shared_ptr<TaskScheduler> mermaid::support::activeobject::ActiveObject::taskScheduler_ [protected, inherited] |
Reference to the TaskScheduler used by this ActiveObject.
Definition at line 140 of file ActiveObject.hpp.