1 #ifndef _ELMA_STATE_MACHINE_H 2 #define _ELMA_STATE_MACHINE_H 21 StateMachine() :
Process(
"unnamed state machine"), _initial(NULL), _current(NULL), _propagate(false) {}
41 inline vector<Transition>
transitions() {
return _transitions; }
67 vector<Transition> _transitions;
StateMachine & add_transition(std::string event_name, State &from, State &to)
StateMachine & set_initial(State &s)
vector< Transition > transitions()
Get the list of transitions.
States for the StateMachine class.
StateMachine(std::string name)
Construct a new StateMachine with the given name.
StateMachine()
Construct an unnamed StateMachine.
StateMachine & set_propagate(bool val)
A finite state machine class.
An abstract base class for processes.