60 virtual void entry(
void) = 0;
66 virtual void during(
void) = 0;
72 virtual void exit(
void) = 0;
Transition * arclist[MAXARCS]
List of possible transitions.
State(StateMachine *p, const char n[]=NULL)
Construct a new State object.
void printName(void)
Prints the name of the state.
Abstract class representing a state machine. Includes a number of State and Transition objects...
StateMachine * owner
Pointer to the owning state machine.
const char * getName(void)
Returns the name of the state - Note that this.
bool addArc(Transition *t)
Transition * getActiveArc(void)
Abstract class representing a state in a StateMachine.
virtual void during(void)=0
Called continuously whilst in that state. Pure virtual function, must be overwritten by each state...
Represents possible transitions linking two State objects with an Event.
virtual void entry(void)=0
Called once when the state is entered. Pure virtual function, must be overwritten by each state...
virtual void exit(void)=0
Called once when the state exits. Pure virtual function, must be overwritten by each state...