Public Member Functions | |
void | SignalCurrentState (StateEvent e) |
Protected Member Functions | |
void | Initialize (StateDelegate topState) |
Boolean | IsParent (StateDelegate parentState, StateDelegate childState) |
bool | HasDeepHistAttrib (StateDelegate state) |
void | TransitionState (StateDelegate newState, bool toDeepHist) |
void | TransitionState (StateDelegate newState) |
void | InitTransitionState (StateDelegate newState) |
Boolean | IsInState (StateDelegate state) |
The basic state machine implementation. This class should be subclassed to create a state machine.
bool SimpleHsm::SimpleHsm::HasDeepHistAttrib | ( | StateDelegate | state | ) | [inline, protected] |
Check if a state delegates method has the DeepHistory attribute
state | The state to check |
void SimpleHsm::SimpleHsm::Initialize | ( | StateDelegate | topState | ) | [inline, protected] |
Initialise a simplehsm state machine.
topState | The topmost (and initial) state of the hierarchy |
void SimpleHsm::SimpleHsm::InitTransitionState | ( | StateDelegate | newState | ) | [inline, protected] |
Initiate an initial transition to a new state (this function should only be used from a SimpleHsm::Signal::Init state event).
newState | The state to transition to |
Boolean SimpleHsm::SimpleHsm::IsInState | ( | StateDelegate | state | ) | [inline, protected] |
Check if a state machine is currently in a certain state.
state | The state to check |
Boolean SimpleHsm::SimpleHsm::IsParent | ( | StateDelegate | parentState, | |
StateDelegate | childState | |||
) | [inline, protected] |
Check is one state is the parent of another.
parentState | The parent state to check | |
childState | The child state to check |
void SimpleHsm::SimpleHsm::SignalCurrentState | ( | StateEvent | e | ) | [inline] |
Send a signal to the state machine.
e | The event to send to the state machine |
void SimpleHsm::SimpleHsm::TransitionState | ( | StateDelegate | newState | ) | [inline, protected] |
Initiate a transition to a new state.
newState | The state to transition to |
void SimpleHsm::SimpleHsm::TransitionState | ( | StateDelegate | newState, | |
bool | toDeepHist | |||
) | [inline, protected] |
Initiate a transition to a new state.
This function will:
newState | The state to transition to | |
toDeepHist | Whether to transition to the states internal deep history psuedostate |