net.sourceforge.aqueduct.state
Class TerminalState<T extends InputSource>

java.lang.Object
  extended by net.sourceforge.aqueduct.state.AbstractState<T>
      extended by net.sourceforge.aqueduct.state.TerminalState<T>
Type Parameters:
T -
All Implemented Interfaces:
State<T>

public class TerminalState<T extends InputSource>
extends AbstractState<T>

Represents a terminal state in a state machine. A terminal state does not transition to another state; when it is the current state of a state machine, that state machine's processing is complete.

Author:
keith

Constructor Summary
TerminalState(java.lang.String id)
           
 
Method Summary
 java.lang.String nextTransition(T inputSource)
          Returns the next transition name.
 
Methods inherited from class net.sourceforge.aqueduct.state.AbstractState
getId, isStopState, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TerminalState

public TerminalState(java.lang.String id)
Method Detail

nextTransition

public java.lang.String nextTransition(T inputSource)
Returns the next transition name. For a TerminalState, this method always returns null.

Returns:


Copyright © 2008. All Rights Reserved.