public static interface StateMachineData.Writer<T extends StateMachine<T,S,E,C>,S,E,C> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
currentState(S currentStateId)
Write current state of state machine data to provided state id
|
void |
identifier(String id) |
void |
initialState(S initialStateId)
Write initial state of state machine data to provided state id
|
void |
lastActiveChildStateFor(S parentStateId,
S childStateId)
Set last active child state of parent state
|
void |
lastState(S lastStateId)
Write last state of state machine data to provided state id
|
void |
linkedStateDataOn(S linkedState,
StateMachineData.Reader<? extends StateMachine<?,S,E,C>,S,E,C> linkStateData)
Write linked state data on specified linked state
|
void |
removeSubState(S parentStateId,
S subStateId)
Remove provide sub state under provided parent state
|
void |
removeSubStatesOn(S parentStateId)
Remove all sub states under provider parent state
|
void |
startContext(C context)
Write start context of state machine
|
void |
subStateFor(S parentStateId,
S subStateId)
Write provided sub state for provided parent state
|
void |
typeOfContext(Class<C> contextClass)
Write type of context
|
void |
typeOfEvent(Class<E> eventClass)
Write type of event
|
void |
typeOfState(Class<S> stateClass)
Write type of state
|
void |
typeOfStateMachine(Class<? extends T> stateMachineType)
Write type of state machine
|
void identifier(String id)
void currentState(S currentStateId)
currentStateId - void lastState(S lastStateId)
lastStateId - void initialState(S initialStateId)
initialStateId - void startContext(C context)
context - start context of state machinevoid lastActiveChildStateFor(S parentStateId, S childStateId)
parentStateId - id of parent statechildStateId - id of child statevoid subStateFor(S parentStateId, S subStateId)
parentStateId - subStateId - void removeSubState(S parentStateId, S subStateId)
parentStateId - subStateId - void removeSubStatesOn(S parentStateId)
parentStateId - void typeOfStateMachine(Class<? extends T> stateMachineType)
stateMachineType - void typeOfContext(Class<C> contextClass)
contextClass - void linkedStateDataOn(S linkedState, StateMachineData.Reader<? extends StateMachine<?,S,E,C>,S,E,C> linkStateData)
linkedState - specified linked statelinkStateData - linked state dataCopyright © 2013–2016. All rights reserved.