|
rad 6.2.0
|
#include <Transition.h>
Public Member Functions | |
| Transition () | |
| virtual | ~Transition () |
| State * | getSource () |
| const Event & | getEvent () |
| std::list< State * > & | getTargets () |
| void | addTarget (State *s) |
| void | addAction (Action *a) |
| void | addCondition (Action *c) |
| ExecutableContent * | getActions () |
| ExecutableContent * | getConditions () |
| bool | isEnabled (Context *c) |
| bool | isEnabled (const Event &e, Context *c) |
| void | setSource (State *source) |
| void | setTargets (std::list< State * > &targets) |
| void | setEvent (const Event &e) |
This class represents a State Machine transition.
It can be used for:
| scxml4cpp::Transition::Transition | ( | ) |
Creates a transition object.
It allocates two ExecutableContent objects:
|
virtual |
Deletes a transition object.
It deallocates the two ExecutableContent objects:
| void scxml4cpp::Transition::addAction | ( | Action * | a | ) |
Add an action to the ExecutableContent to be executed when the transition is taken.
| a | Pointer to an action. |
| void scxml4cpp::Transition::addCondition | ( | Action * | c | ) |
Add a guard to the ExecutableContent to be evaluated before a transition is taken.
| a | Pointer to an action which represent a guard. |
| void scxml4cpp::Transition::addTarget | ( | State * | s | ) |
Add a target state to the transition.
| s | Pointer to a target state to be added. |
| ExecutableContent * scxml4cpp::Transition::getActions | ( | ) |
| ExecutableContent * scxml4cpp::Transition::getConditions | ( | ) |
| const Event & scxml4cpp::Transition::getEvent | ( | ) |
| State * scxml4cpp::Transition::getSource | ( | ) |
| std::list< State * > & scxml4cpp::Transition::getTargets | ( | ) |
| bool scxml4cpp::Transition::isEnabled | ( | Context * | c | ) |
| void scxml4cpp::Transition::setEvent | ( | const Event & | e | ) |
Set the event that should trigger the transition.
| void scxml4cpp::Transition::setSource | ( | State * | source | ) |
Set the source state of the transition.
| s | Pointer to a source state. |
| void scxml4cpp::Transition::setTargets | ( | std::list< State * > & | targets | ) |
Set the target state(s) of the transition.
| targets | List of target states. |