#include <StateMachine.hh>
This class provides a template for all event objects to be defined within state machine subclasses. Derived classes must provide an implementation for the check method to define the semantics of an event.
Public Member Functions | |
Event (StateMachine *p, const char n[]=NULL) | |
virtual bool | check (void)=0 |
const char * | getName (void) |
Public Attributes | |
StateMachine * | owner |
|
This constructor creates an event object instance belonging to the state machine p, with an optional name for debugging purposes. |
|
Derived implementations of this method are expected to encode the semantics of an event by returning its current boolean state. |
|
This method returns the name of a state, mainly used for debugging and display purposes. |
|
This member is an internal pointer to the owner state machine. Event methods (check in particular) can access state machine members and methods through this member. |