net.sourceforge.aqueduct.state
Class AbstractState<T extends InputSource>
java.lang.Object
net.sourceforge.aqueduct.state.AbstractState<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- State<T>
- Direct Known Subclasses:
- RegexState, TerminalState
public abstract class AbstractState<T extends InputSource>
- extends java.lang.Object
- implements State<T>
Base class for State implementations.
- Author:
- keith
Constructor Summary |
AbstractState(java.lang.String id,
boolean stopState)
|
Method Summary |
java.lang.String |
getId()
Returns this State's identifier. |
boolean |
isStopState()
Indicates to a StateMachine that the runUntilStopState() method should
stop executing state transitions. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractState
public AbstractState(java.lang.String id,
boolean stopState)
getId
public final java.lang.String getId()
- Description copied from interface:
State
- Returns this State's identifier. No two States in a StateMachine may have
the same id.
- Specified by:
getId
in interface State<T extends InputSource>
- Returns:
isStopState
public final boolean isStopState()
- Description copied from interface:
State
- Indicates to a StateMachine that the runUntilStopState() method should
stop executing state transitions.
- Specified by:
isStopState
in interface State<T extends InputSource>
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008. All Rights Reserved.