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

Public Member Functions

 TestCondition (const std::string &id)
 
void execute (scxml4cpp::Context *c)
 
bool evaluate (scxml4cpp::Context *c)
 
 TestCondition (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

◆ TestCondition() [1/2]

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

◆ TestCondition() [2/2]

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

Member Function Documentation

◆ evaluate() [1/2]

bool TestCondition::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.

◆ evaluate() [2/2]

bool TestCondition::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() [1/2]

void TestCondition::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.

◆ execute() [2/2]

void TestCondition::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: