rad 6.2.0
|
#include <ExecutableContent.h>
Public Member Functions | |
ExecutableContent () | |
~ExecutableContent () | |
std::list< Action * > & | getActions () |
void | addAction (Action *a) |
void | execute (Context *c) |
bool | evaluate (Context *c) |
This class group a list of actions (or guards) to be executed (or evaluated) when entering/exiting a state or when taking a transition.
scxml4cpp::ExecutableContent::ExecutableContent | ( | ) |
Default constructor.
scxml4cpp::ExecutableContent::~ExecutableContent | ( | ) |
The destructor does not free memory.
void scxml4cpp::ExecutableContent::addAction | ( | Action * | a | ) |
Add a pointer to an action object to the list of actions.
The same action cannot be added twice.
a | Pointer to the action to be added. |
bool scxml4cpp::ExecutableContent::evaluate | ( | Context * | c | ) |
Calls the Action::evaluate() method of all actions in the list.
void scxml4cpp::ExecutableContent::execute | ( | Context * | c | ) |
Calls the Action::execute() method of all actions in the list.
std::list< Action * > & scxml4cpp::ExecutableContent::getActions | ( | ) |