Framework Professional Edition Package


com.prosyst.util.asm
Interface StateMachineListener


public interface StateMachineListener

The StateMachineListener is designed to ease developer to customize the behaviour and to listen for the state machine changes.

Author:
Valentin Valchev

Method Summary
 void enterState(java.lang.String state, StateMachine context)
          This method is called by the state machine when it is enters a new state
 void executing(java.lang.String transition, StateMachine context)
          This method is called whenever, the state machine is executing a transition.
 void leaveState(java.lang.String state, StateMachine context)
          This method is called by the state machine when it is leaving the current state
 void propertyChanged(java.lang.String name, java.lang.Object value, StateMachine context)
          This method is changed whenever a state machine property is changed.
 

Method Detail

leaveState

void leaveState(java.lang.String state,
                StateMachine context)
This method is called by the state machine when it is leaving the current state

Parameters:
state - the current (old) state
context - the state machine

enterState

void enterState(java.lang.String state,
                StateMachine context)
This method is called by the state machine when it is enters a new state

Parameters:
state - the new state that state machine has god
context - the state machine

executing

void executing(java.lang.String transition,
               StateMachine context)
This method is called whenever, the state machine is executing a transition. Usually, this method is called in the following order:
  1. leaveState(OLD state)
  2. executing(transition)
  3. enterState(NEW state)

Parameters:
transition - the name of the transition that is being executed
context - the state machine

propertyChanged

void propertyChanged(java.lang.String name,
                     java.lang.Object value,
                     StateMachine context)
This method is changed whenever a state machine property is changed.

Parameters:
name - the name of the property
value - it's value
context - the state machine

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved