net.sourceforge.aqueduct
Class StateMachineDescription.Builder<S extends State<I>,I extends InputSource>

java.lang.Object
  extended by net.sourceforge.aqueduct.StateMachineDescription.Builder<S,I>
Type Parameters:
I -
Enclosing class:
StateMachineDescription<S extends State<I>,I extends InputSource>

public static final class StateMachineDescription.Builder<S extends State<I>,I extends InputSource>
extends java.lang.Object

Convenience class that simplifies the code required to create a StateMachineDescription.

Author:
keith

Constructor Summary
StateMachineDescription.Builder()
           
 
Method Summary
 StateMachineDescription.Builder<S,I> addStateTransition(S startingState, java.lang.String transitionName, S nextState)
           
 StateMachineDescription.Builder<S,I> addTransition(java.lang.String transitionName, S nextState)
           
 StateMachineDescription<S,I> newStateMachineDescription()
          Returns a new StateMachineDescription instance based on the values passed into this Builder.
 StateMachineDescription.Builder<S,I> nextStartingState(S startingState)
           
 StateMachineDescription.Builder<S,I> setGoToStateByIdAllowed(boolean goToStateByIdAllowed)
           
 StateMachineDescription.Builder<S,I> setInitialState(S initialState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMachineDescription.Builder

public StateMachineDescription.Builder()
Method Detail

newStateMachineDescription

public StateMachineDescription<S,I> newStateMachineDescription()
Returns a new StateMachineDescription instance based on the values passed into this Builder.

Returns:

setInitialState

public StateMachineDescription.Builder<S,I> setInitialState(S initialState)

setGoToStateByIdAllowed

public StateMachineDescription.Builder<S,I> setGoToStateByIdAllowed(boolean goToStateByIdAllowed)

addStateTransition

public StateMachineDescription.Builder<S,I> addStateTransition(S startingState,
                                                               java.lang.String transitionName,
                                                               S nextState)

nextStartingState

public StateMachineDescription.Builder<S,I> nextStartingState(S startingState)

addTransition

public StateMachineDescription.Builder<S,I> addTransition(java.lang.String transitionName,
                                                          S nextState)


Copyright © 2008. All Rights Reserved.