rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
scxml4cpp::ExecutableContent Class Reference

#include <ExecutableContent.h>

Public Member Functions

 ExecutableContent ()
 
 ~ExecutableContent ()
 
std::list< Action * > & getActions ()
 
void addAction (Action *a)
 
void execute (Context *c)
 
bool evaluate (Context *c)
 

Detailed Description

This class group a list of actions (or guards) to be executed (or evaluated) when entering/exiting a state or when taking a transition.

Constructor & Destructor Documentation

◆ ExecutableContent()

scxml4cpp::ExecutableContent::ExecutableContent ( )

Default constructor.

◆ ~ExecutableContent()

scxml4cpp::ExecutableContent::~ExecutableContent ( )

The destructor does not free memory.

Member Function Documentation

◆ addAction()

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.

Parameters
aPointer to the action to be added.

◆ evaluate()

bool scxml4cpp::ExecutableContent::evaluate ( Context * c)

Calls the Action::evaluate() method of all actions in the list.

Returns
true if all actions evaluate to true, false otherwise.

◆ execute()

void scxml4cpp::ExecutableContent::execute ( Context * c)

Calls the Action::execute() method of all actions in the list.

◆ getActions()

std::list< Action * > & scxml4cpp::ExecutableContent::getActions ( )
Returns
a list of action objects.

The documentation for this class was generated from the following files: