S - the type of stateE - the type of eventpublic interface StateMachineListener<S,E>
StateMachineListener for various state machine events.| Modifier and Type | Method and Description |
|---|---|
void |
stateChanged(State<S,E> from,
State<S,E> to)
Notified when state is changed.
|
void |
stateEntered(State<S,E> state)
Notified when state is entered.
|
void |
stateExited(State<S,E> state)
Notified when state is exited.
|
void |
stateMachineStarted(StateMachine<S,E> stateMachine)
Notified when statemachine starts
|
void |
stateMachineStopped(StateMachine<S,E> stateMachine)
Notified when statemachine stops
|
void |
transition(Transition<S,E> transition)
Notified when transition happened.
|
void |
transitionEnded(Transition<S,E> transition)
Notified when transition ended.
|
void |
transitionStarted(Transition<S,E> transition)
Notified when transition started.
|
void stateChanged(State<S,E> from, State<S,E> to)
from - the source stateto - the target statevoid stateEntered(State<S,E> state)
state - the statevoid stateExited(State<S,E> state)
state - the statevoid transition(Transition<S,E> transition)
transition - the transitionvoid transitionStarted(Transition<S,E> transition)
transition - the transitionvoid transitionEnded(Transition<S,E> transition)
transition - the transitionvoid stateMachineStarted(StateMachine<S,E> stateMachine)
stateMachine - the statemachinevoid stateMachineStopped(StateMachine<S,E> stateMachine)
stateMachine - the statemachine