rad
5.1.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.
ExecutableContent::ExecutableContent | ( | ) |
Default constructor.
ExecutableContent::~ExecutableContent | ( | ) |
The destructor does not free memory.
void 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 ExecutableContent::evaluate | ( | Context * | c | ) |
Calls the Action::evaluate() method of all actions in the list.
void ExecutableContent::execute | ( | Context * | c | ) |
Calls the Action::execute() method of all actions in the list.
std::list< Action * > & ExecutableContent::getActions | ( | ) |