rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TestAction Class Reference
Inheritance diagram for TestAction:
scxml4cpp::Action

Public Member Functions

 TestAction (const std::string &id)
 
void execute (scxml4cpp::Context *c)
 
bool evaluate (scxml4cpp::Context *c)
 
- Public Member Functions inherited from scxml4cpp::Action
 Action (const std::string &id)
 
virtual ~Action ()
 
std::string getId () const
 
std::string getParam () const
 
void setId (const std::string &id)
 
void setParam (const std::string &p)
 

Constructor & Destructor Documentation

◆ TestAction()

TestAction::TestAction ( const std::string & id)
inline

Member Function Documentation

◆ evaluate()

bool TestAction::evaluate ( scxml4cpp::Context * c)
inlinevirtual

Evaluate a guard condition usually verified before taking a transition. The evaluation is blocking the State Machine interpreter and therefore should be short (ideally it should last 0 time).

Parameters
cContext for the execution of the action.
Returns
true If the guard is satisfied, false otherwise.

Implements scxml4cpp::Action.

◆ execute()

void TestAction::execute ( scxml4cpp::Context * c)
inlinevirtual

Execute the task associated to the action. The execution is blocking the State Machine interpreter and therefore should be short (ideally it should last 0 time).

Parameters
cContext for the execution of the action.

Implements scxml4cpp::Action.


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