Modifier and Type | Class and Description |
---|---|
static class |
FSM.FSMBuilder.StateBuilder<T>
Fluid State Builder
|
Constructor and Description |
---|
FSMBuilder() |
Modifier and Type | Method and Description |
---|---|
FSM.FSMBuilder<T> |
addState(State<T> state)
Add a specified State
|
FSM.FSMBuilder<T> |
addState(State<T> state,
boolean isStartState)
Add a specified State and state whether or not it's the Start State for the FSM.
|
FSM<T> |
build()
Build the FSM and all of it's States and Transitions
|
FSM.FSMBuilder.StateBuilder<T> |
buildState(String name)
Begin building a State for the FSM
|
FSM.FSMBuilder.StateBuilder<T> |
buildState(String name,
boolean isStartState)
Begin building a State for the FSM and state whether or not it's the Start State for the FSM.
|
static <T> FSM.FSMBuilder<T> |
newBuilder(Class<T> clazz)
Build a new FSM Builder
|
FSM.FSMBuilder<T> |
setName(String name)
Sets the name of the FSM
|
FSM.FSMBuilder<T> |
setPerister(Persister<T> persister)
Set the Persister for the FSM.
|
FSM.FSMBuilder<T> |
setRetryAttempts(int retryAttempts)
Sets the number of retry attempts for the FSM
|
FSM.FSMBuilder<T> |
setRetryInterval(int retryInterval)
Sets the retry interval for the FSM
|
public static <T> FSM.FSMBuilder<T> newBuilder(Class<T> clazz)
clazz
- Parameterized Class for the FSMpublic FSM.FSMBuilder<T> setPerister(Persister<T> persister)
persister
- The Persisterpublic FSM.FSMBuilder<T> setName(String name)
name
- Name of the FSMpublic FSM.FSMBuilder<T> setRetryAttempts(int retryAttempts)
retryAttempts
- public FSM.FSMBuilder<T> setRetryInterval(int retryInterval)
retryInterval
- public FSM.FSMBuilder<T> addState(State<T> state)
state
- State to addpublic FSM.FSMBuilder<T> addState(State<T> state, boolean isStartState)
state
- State to addisStartState
- Whether or not the State is specified as the Start Statepublic FSM.FSMBuilder.StateBuilder<T> buildState(String name)
name
- Name of the Statepublic FSM.FSMBuilder.StateBuilder<T> buildState(String name, boolean isStartState)
name
- Name of the StateisStartState
- Whether or not the State is specified as the Start StateCopyright © 2016. All rights reserved.