net.sourceforge.aqueduct
Interface State<T extends InputSource>

Type Parameters:
T - The type of InputSource object used by this object to find the next transition name.
All Known Subinterfaces:
StringSequenceState
All Known Implementing Classes:
AbstractState, RegexState, TerminalState

public interface State<T extends InputSource>

A state in the state machine. Uses values from the provided InputSource to determine the next transition.

Author:
keith

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 nextTransition(T inputSource)
          Uses values from the provided InputSource to determine the StateMachine's next transition.
 

Method Detail

nextTransition

java.lang.String nextTransition(T inputSource)
Uses values from the provided InputSource to determine the StateMachine's next transition.

Parameters:
inputSource -
Returns:

getId

java.lang.String getId()
Returns this State's identifier. No two States in a StateMachine may have the same id.

Returns:

isStopState

boolean isStopState()
Indicates to a StateMachine that the runUntilStopState() method should stop executing state transitions.

Returns:


Copyright © 2008. All Rights Reserved.