public interface IStateMachine<StateId,Event>
processEvent
method to supply the
state machine with events. The action callbacks are called automatically
from within this method.
Do not derive directly from this class. Use StateMachineBuilder.create()
to acquire an implementation of this interface.
Modifier and Type | Method and Description |
---|---|
StateId |
getCurrentState()
Get the current state of the top level state machine.
|
java.util.List<StateId> |
getCurrentStates()
Get a list of states that represents the current state of the state
machine and all its substates.
|
void |
processEvent(Event event)
Process one event of the state machine.
|
StateId getCurrentState()
java.util.List<StateId> getCurrentStates()
void processEvent(Event event)
Note: Do not call this method from within an action callback.
event
- The event to be processed.InTransitionException
- If a callback is called while a transition
is taking place.