S - the type of stateE - the type of eventpublic class StateMachineListenerAdapter<S,E> extends java.lang.Object implements StateMachineListener<S,E>
StateMachineListener implementing all
methods which extended implementation can override.| Constructor and Description |
|---|
StateMachineListenerAdapter() |
| 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.
|
public void stateChanged(State<S,E> from, State<S,E> to)
StateMachineListenerstateChanged in interface StateMachineListener<S,E>from - the source stateto - the target statepublic void stateEntered(State<S,E> state)
StateMachineListenerstateEntered in interface StateMachineListener<S,E>state - the statepublic void stateExited(State<S,E> state)
StateMachineListenerstateExited in interface StateMachineListener<S,E>state - the statepublic void transition(Transition<S,E> transition)
StateMachineListenertransition in interface StateMachineListener<S,E>transition - the transitionpublic void transitionStarted(Transition<S,E> transition)
StateMachineListenertransitionStarted in interface StateMachineListener<S,E>transition - the transitionpublic void transitionEnded(Transition<S,E> transition)
StateMachineListenertransitionEnded in interface StateMachineListener<S,E>transition - the transitionpublic void stateMachineStarted(StateMachine<S,E> stateMachine)
StateMachineListenerstateMachineStarted in interface StateMachineListener<S,E>stateMachine - the statemachinepublic void stateMachineStopped(StateMachine<S,E> stateMachine)
StateMachineListenerstateMachineStopped in interface StateMachineListener<S,E>stateMachine - the statemachine