T
- The class of the Stateful Entitypublic interface State<T>
Transition
s.Modifier and Type | Method and Description |
---|---|
void |
addTransition(String event,
State<T> next)
Add a deterministic Transition with no Action
|
void |
addTransition(String event,
State<T> next,
Action<T> action)
Add a deterministic Transition with an Action
|
void |
addTransition(String event,
Transition<T> transition)
Add a
Transition |
String |
getName()
Name of the State.
|
Transition<T> |
getTransition(String event)
Returns the Transition for an Event
|
boolean |
isBlocking()
Whether this is a Blocking State.
|
boolean |
isEndState()
Whether this State is an End State
|
void |
removeTransition(String event)
Remove a Transition from the State
|
void |
setBlocking(boolean isBlocking)
Set whether or not this is a Blocking State
|
String getName()
Transition<T> getTransition(String event)
event
- The eventboolean isEndState()
boolean isBlocking()
void setBlocking(boolean isBlocking)
isBlocking
- if true, then this is a blocking Statevoid removeTransition(String event)
event
- Remove the transition for this Eventvoid addTransition(String event, Transition<T> transition)
Transition
event
- The event to add the Transition
transition
- The Transition
void addTransition(String event, State<T> next, Action<T> action)
event
- The event to add the Transition
next
- The next Stateaction
- The resulting Action
void addTransition(String event, State<T> next)
event
- The event to add the Transition
next
- The next StateCopyright © 2016. All rights reserved.