org.wegra.state
Class StateMachine

java.lang.Object
  extended byorg.wegra.state.StateMachine

public abstract class StateMachine
extends java.lang.Object

Version:
1.0, 13.04.2002
Author:
wegra (Bok-Youn Lee)

Field Summary
protected  State fCurrentState
          Current state.
 
Constructor Summary
StateMachine()
           
 
Method Summary
 State getCurrentState()
          Returns current state.
abstract  State getStartState()
          Returns start state.
 void init()
          Initializes StateMachine.
 void input(java.lang.Object input)
          Inputs.
 boolean isAccepted()
          Checks current input squence is acceptable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fCurrentState

protected State fCurrentState
Current state.

Constructor Detail

StateMachine

public StateMachine()
Method Detail

init

public void init()
Initializes StateMachine.


getCurrentState

public final State getCurrentState()
Returns current state.


getStartState

public abstract State getStartState()
Returns start state.


input

public void input(java.lang.Object input)
Inputs.


isAccepted

public final boolean isAccepted()
Checks current input squence is acceptable.