fr.lri.swingstates.debug
Interface StateMachineEventListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
StateMachineEventAdapter

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.

Author:
Caroline Appert
See Also:
StateMachineEvent, StateMachineEventAdapter

Method Summary
 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.
 

Method Detail

smSuspended

void smSuspended(StateMachineEvent e)
Invoked when the state machine has been suspended.

Parameters:
e - the event.

smResumed

void smResumed(StateMachineEvent e)
Invoked when the state machine has been resumed.

Parameters:
e - the event.

smReset

void smReset(StateMachineEvent e)
Invoked when the state machine has been reset.

Parameters:
e - the event.

smStateChanged

void smStateChanged(StateMachineEvent e)
Invoked when the state machine has fired a transition changing the current state.

Parameters:
e - the event.

smStateLooped

void smStateLooped(StateMachineEvent e)
Invoked when the state machine has fired a transition making it loop on the current state.

Parameters:
e - the event.

smInited

void smInited(StateMachineEvent e)
Invoked when the state machine has been inited.

Parameters:
e - the event.