com.taserv.SMS
Interface StateMachineObserverIF


public interface StateMachineObserverIF

Defines a contract for tracing state machines


Method Summary
 void smCompositeState(SMStateIF state, SimpleStateMachine compStateSM, SimpleStateMachine sm)
          Called every time a composite state added or a state becomes composite.
 void smHandledEvent(SimpleStateMachine sm, SMStateIF origState, java.lang.Class triggerEventCls, StateTransition transition, SMStateIF newState)
          Called every time a transition performed.
 void smStateChanged(SimpleStateMachine sm, SMStateIF state)
          Called every time a state added or changed
 void smStateEntry(SimpleStateMachine sm, SMStateIF state)
          Called every time a state becomes current
 void smStateEntryTransAdded(SimpleStateMachine sm, SMStateIF state, EntryStateTransition trans)
          Called every time an entry transition added
 void smStateEntryTransRemoved(SimpleStateMachine sm, SMStateIF state, EntryStateTransition trans)
          Called every time an entry transition removed
 void smStateExit(SimpleStateMachine sm, SMStateIF state)
          Called every time a current state changes to other state
 void smStateExitTransAdded(SimpleStateMachine sm, SMStateIF state, ExitStateTransition trans)
          Called every time an exit transition added
 void smTransitionAdded(SimpleStateMachine sm, SMStateIF origState, java.lang.Class triggerEventCls, StateTransition transition, SMStateIF newState)
          Called every time a transition added.
 

Method Detail

smStateChanged

void smStateChanged(SimpleStateMachine sm,
                    SMStateIF state)
Called every time a state added or changed

Parameters:
sm - the state machine containing the state
state - the state

smTransitionAdded

void smTransitionAdded(SimpleStateMachine sm,
                       SMStateIF origState,
                       java.lang.Class triggerEventCls,
                       StateTransition transition,
                       SMStateIF newState)
Called every time a transition added. Look at addTransition method for the details about the parameters


smStateEntry

void smStateEntry(SimpleStateMachine sm,
                  SMStateIF state)
Called every time a state becomes current

Parameters:
sm - containing SM
state - the new current state

smStateExit

void smStateExit(SimpleStateMachine sm,
                 SMStateIF state)
Called every time a current state changes to other state

Parameters:
sm - containing SM
state - the old current state

smHandledEvent

void smHandledEvent(SimpleStateMachine sm,
                    SMStateIF origState,
                    java.lang.Class triggerEventCls,
                    StateTransition transition,
                    SMStateIF newState)
Called every time a transition performed. newState is the actual state that will be set current. Look at addTransition method for the details about the parameters


smStateEntryTransAdded

void smStateEntryTransAdded(SimpleStateMachine sm,
                            SMStateIF state,
                            EntryStateTransition trans)
Called every time an entry transition added

Parameters:
sm - the containing SM
state - the state that the transition was added
trans - the entry transition

smStateEntryTransRemoved

void smStateEntryTransRemoved(SimpleStateMachine sm,
                              SMStateIF state,
                              EntryStateTransition trans)
Called every time an entry transition removed

Parameters:
sm - the containing SM
state - the state that the transition was removed
trans - the entry transition

smStateExitTransAdded

void smStateExitTransAdded(SimpleStateMachine sm,
                           SMStateIF state,
                           ExitStateTransition trans)
Called every time an exit transition added

Parameters:
sm - the containing SM
state - the state that the transition was added
trans - the exit transition

smCompositeState

void smCompositeState(SMStateIF state,
                      SimpleStateMachine compStateSM,
                      SimpleStateMachine sm)
Called every time a composite state added or a state becomes composite.

Parameters:
state - the composite state
compStateSM - the composite state internal SM
sm - contaning SM


Copyright © 2004 TAServ. All Rights Reserved.