public interface StateMachineEventListener
extends java.util.EventListener
The listener interface for receiving "interesting" state machine events:
The class that is interested in processing a state machine event either implements this interface
(and all the methods it contains) or extends the abstract StateMachineEventAdapter
class
(overriding only the methods of interest).
The listener object created from that class is then registered with a state machine using the state machine's addStateMachineListener method. When the state machine is resumed, reset, suspended, goes to another state or loops on the current state, the relevant method in the listener object is invoked and the StateMachineEvent is passed to it.
StateMachineEvent
,
StateMachineEventAdapter
Modifier and Type | Method and Description |
---|---|
void |
smInited(StateMachineEvent e)
Invoked when the state machine has been inited.
|
void |
smReset(StateMachineEvent e)
Invoked when the state machine has been reset.
|
void |
smResumed(StateMachineEvent e)
Invoked when the state machine has been resumed.
|
void |
smStateChanged(StateMachineEvent e)
Invoked when the state machine has fired a transition changing the current state.
|
void |
smStateLooped(StateMachineEvent e)
Invoked when the state machine has fired a transition making it loop on the current state.
|
void |
smSuspended(StateMachineEvent e)
Invoked when the state machine has been suspended.
|
void smSuspended(StateMachineEvent e)
e
- the event.void smResumed(StateMachineEvent e)
e
- the event.void smReset(StateMachineEvent e)
e
- the event.void smStateChanged(StateMachineEvent e)
e
- the event.void smStateLooped(StateMachineEvent e)
e
- the event.void smInited(StateMachineEvent e)
e
- the event.