org.wegra.state
Class AbstractState

java.lang.Object
  extended byorg.wegra.state.AbstractState
All Implemented Interfaces:
State

public abstract class AbstractState
extends java.lang.Object
implements State

Generic State.

Version:
1.0.0, 2001.11.21 1.1.0, 2002.08.22
Author:
wegra (Bok-Youn Lee)

Constructor Summary
protected AbstractState(boolean finalState)
           
protected AbstractState(java.lang.String description, boolean finalState)
           
 
Method Summary
 java.lang.String getDescription()
          Returns description.
 boolean isFinalState()
          Tests if it's accept state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wegra.state.State
transit
 

Constructor Detail

AbstractState

protected AbstractState(boolean finalState)

AbstractState

protected AbstractState(java.lang.String description,
                        boolean finalState)
Method Detail

isFinalState

public boolean isFinalState()
Tests if it's accept state. Override this method, if it's accept state. Otherwise it'll return false.

Specified by:
isFinalState in interface State
Returns:
true if it's accept state, otherwise false.

getDescription

public java.lang.String getDescription()
Returns description.