Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.iicm.xpg.statemachine
Interface StateMachine  view StateMachine download StateMachine.java

All Known Implementing Classes:
PrimitiveStateMachine

public interface StateMachine

Version:
$Revision: 1.3 $

Method Summary
 State getCurrentState()
           
 java.util.Set getRegisteredStates()
           
 java.util.Set getRegisteredTransitions(java.lang.String state_id)
           
 void initializeMachine()
           
 void input(Input input)
           
 boolean isStateRegistered(java.lang.String state_id)
           
 void registerDefaultTransition(Transition transition, java.lang.String from_state_id, java.lang.String to_state_id)
           
 void registerState(State state, java.lang.String state_id)
           
 void registerTransition(Input input, Transition transition, java.lang.String from_state_id, java.lang.String to_state_id)
           
 void setStartState(java.lang.String start_state_id)
           
 void setUserDefinedDataObject(DataObject data)
           
 void stopMachine()
           
 void unregisterState(java.lang.String state_id)
           
 void unregisterTransition(Input input, java.lang.String from_state_id)
           
 

Method Detail

setStartState

public void setStartState(java.lang.String start_state_id)
                   throws java.lang.IllegalArgumentException

registerState

public void registerState(State state,
                          java.lang.String state_id)
                   throws java.lang.IllegalArgumentException

unregisterState

public void unregisterState(java.lang.String state_id)
                     throws java.lang.IllegalArgumentException

getRegisteredStates

public java.util.Set getRegisteredStates()

isStateRegistered

public boolean isStateRegistered(java.lang.String state_id)
                          throws java.lang.IllegalArgumentException

getCurrentState

public State getCurrentState()

getRegisteredTransitions

public java.util.Set getRegisteredTransitions(java.lang.String state_id)
                                       throws java.lang.IllegalArgumentException

registerTransition

public void registerTransition(Input input,
                               Transition transition,
                               java.lang.String from_state_id,
                               java.lang.String to_state_id)
                        throws java.lang.IllegalArgumentException,
                               DuplicateStateException

registerDefaultTransition

public void registerDefaultTransition(Transition transition,
                                      java.lang.String from_state_id,
                                      java.lang.String to_state_id)
                               throws java.lang.IllegalArgumentException

unregisterTransition

public void unregisterTransition(Input input,
                                 java.lang.String from_state_id)
                          throws java.lang.IllegalArgumentException

setUserDefinedDataObject

public void setUserDefinedDataObject(DataObject data)

input

public void input(Input input)
           throws TransitionException

stopMachine

public void stopMachine()

initializeMachine

public void initializeMachine()