cz.cuni.amis.fsm
Class FSMOriginalState

java.lang.Object
  extended by cz.cuni.amis.fsm.FSMOriginalState
All Implemented Interfaces:
IFSMState

public class FSMOriginalState
extends java.lang.Object
implements IFSMState

Marks that the transition leads back to the state from where it originates. It is used when you need to trigger specific IFSMTransition without leaving / entering the same state again and again.

Or you may use it when you need the state to silently consume specific symbols.


Constructor Summary
FSMOriginalState()
           
 
Method Summary
 void init(java.lang.Object context)
           
 void restart(java.lang.Object context)
           
 void stateEntering(java.lang.Object context, IFSMState fromState, java.lang.Object symbol)
           
 void stateLeaving(java.lang.Object context, IFSMState toState, java.lang.Object symbol)
           
 void stateSymbol(java.lang.Object context, java.lang.Object symbol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSMOriginalState

public FSMOriginalState()
Method Detail

init

public void init(java.lang.Object context)
Specified by:
init in interface IFSMState

restart

public void restart(java.lang.Object context)
Specified by:
restart in interface IFSMState

stateEntering

public void stateEntering(java.lang.Object context,
                          IFSMState fromState,
                          java.lang.Object symbol)
Specified by:
stateEntering in interface IFSMState

stateLeaving

public void stateLeaving(java.lang.Object context,
                         IFSMState toState,
                         java.lang.Object symbol)
Specified by:
stateLeaving in interface IFSMState

stateSymbol

public void stateSymbol(java.lang.Object context,
                        java.lang.Object symbol)
Specified by:
stateSymbol in interface IFSMState