T
- Type of the Stateful Entitypublic static class FSM.FSMBuilder.StateBuilder<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FSM.FSMBuilder.StateBuilder.TransitionBuilder<T>
Fluid Transition Builder
|
Modifier and Type | Method and Description |
---|---|
FSM.FSMBuilder.StateBuilder<T> |
addTransition(String event,
Action<T> action)
Add a Transition with no State change but with an Action
|
FSM.FSMBuilder.StateBuilder<T> |
addTransition(String event,
State<T> toState)
Add a Transition with no Action.
|
FSM.FSMBuilder.StateBuilder<T> |
addTransition(String event,
State<T> toState,
Action<T> action)
Add a Transition with an Action
|
FSM.FSMBuilder.StateBuilder<T> |
addTransition(String event,
String toState)
Add a Transition with no Action.
|
FSM.FSMBuilder.StateBuilder<T> |
addTransition(String event,
String toState,
Action<T> action)
Add a Transition with an Action
|
FSM.FSMBuilder.StateBuilder<T> |
addTransition(String event,
Transition<T> transition)
Add an instantiated Transition
|
FSM.FSMBuilder.StateBuilder.TransitionBuilder<T> |
buildTransition(String event)
Begin building a Transition
|
FSM.FSMBuilder<T> |
done()
Completes the setup for this State Builder
|
FSM.FSMBuilder.StateBuilder<T> |
setBlockingState(boolean isBlocking)
Set whether this State is a blocking State
|
FSM.FSMBuilder.StateBuilder<T> |
setEndState(boolean isEndState)
Set whether this State is the End State
|
public FSM.FSMBuilder.StateBuilder<T> setEndState(boolean isEndState)
isEndState
- public FSM.FSMBuilder.StateBuilder<T> setBlockingState(boolean isBlocking)
isBlocking
- public FSM.FSMBuilder.StateBuilder<T> addTransition(String event, String toState)
event
- Event that triggers the TransitiontoState
- The name of the State in which to transition topublic FSM.FSMBuilder.StateBuilder<T> addTransition(String event, State<T> toState)
event
- Event that triggers the TransitiontoState
- The State in which to transition topublic FSM.FSMBuilder.StateBuilder<T> addTransition(String event, String toState, Action<T> action)
event
- Event that triggers the TransitiontoState
- The name of the State in which to transition toaction
- The Action to invokepublic FSM.FSMBuilder.StateBuilder<T> addTransition(String event, State<T> toState, Action<T> action)
event
- Event that triggers the TransitiontoState
- The State in which to transition toaction
- The Action to invokepublic FSM.FSMBuilder.StateBuilder<T> addTransition(String event, Action<T> action)
event
- Event that triggers the Transitionaction
- The Action to invokepublic FSM.FSMBuilder.StateBuilder<T> addTransition(String event, Transition<T> transition)
event
- Event that triggers the Transitionpublic FSM.FSMBuilder.StateBuilder.TransitionBuilder<T> buildTransition(String event)
event
- Event that triggers the Transitionpublic FSM.FSMBuilder<T> done()
Copyright © 2016. All rights reserved.