org.squirrelframework.foundation.fsm
Interface StateMachineData.Reader<T extends StateMachine<T,S,E,C>,S,E,C>
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- StateMachineDataImpl
- Enclosing interface:
- StateMachineData<T extends StateMachine<T,S,E,C>,S,E,C>
public static interface StateMachineData.Reader<T extends StateMachine<T,S,E,C>,S,E,C>
- extends Serializable
|
Method Summary |
Collection<S> |
activeParentStates()
|
ImmutableState<T,S,E,C> |
currentRawState()
|
S |
currentState()
|
String |
identifier()
|
ImmutableState<T,S,E,C> |
initialRawState()
|
S |
initialState()
|
S |
lastActiveChildStateOf(S parentStateId)
|
ImmutableState<T,S,E,C> |
lastRawState()
|
S |
lastState()
|
StateMachineData.Reader<? extends StateMachine<?,S,E,C>,S,E,C> |
linkedStateDataOf(S linkedState)
|
Collection<S> |
linkedStates()
|
Map<S,ImmutableState<T,S,E,C>> |
orginalStates()
|
Collection<S> |
parallelStates()
|
ImmutableState<T,S,E,C> |
rawStateFrom(S stateId)
|
Collection<ImmutableState<T,S,E,C>> |
rawStates()
|
Collection<S> |
states()
|
List<S> |
subStatesOn(S parentStateId)
|
Class<C> |
typeOfContext()
|
Class<E> |
typeOfEvent()
|
Class<S> |
typeOfState()
|
Class<? extends T> |
typeOfStateMachine()
|
identifier
String identifier()
- Returns:
- state machine identifier
currentState
S currentState()
- Returns:
- current state id of state machine
lastState
S lastState()
- Returns:
- last active state id of state machine
initialState
S initialState()
- Returns:
- id of state machine initial state
lastActiveChildStateOf
S lastActiveChildStateOf(S parentStateId)
- Parameters:
parentStateId - id of parent state
- Returns:
- last active child state of the parent state
activeParentStates
Collection<S> activeParentStates()
- Returns:
- all the active parent states
subStatesOn
List<S> subStatesOn(S parentStateId)
- Parameters:
parentStateId -
- Returns:
- sub state of parallel state
currentRawState
ImmutableState<T,S,E,C> currentRawState()
- Returns:
- current raw state of state machine
lastRawState
ImmutableState<T,S,E,C> lastRawState()
- Returns:
- last active raw state of state machine
initialRawState
ImmutableState<T,S,E,C> initialRawState()
- Returns:
- initial raw state of state machine
rawStateFrom
ImmutableState<T,S,E,C> rawStateFrom(S stateId)
- Parameters:
stateId - the identify of state
- Returns:
- raw state of the same state identify
parallelStates
Collection<S> parallelStates()
- Returns:
- all the parallel states
typeOfStateMachine
Class<? extends T> typeOfStateMachine()
- Returns:
- type of state machine
typeOfState
Class<S> typeOfState()
- Returns:
- type of state
typeOfEvent
Class<E> typeOfEvent()
- Returns:
- type of event
typeOfContext
Class<C> typeOfContext()
- Returns:
- type of context
rawStates
Collection<ImmutableState<T,S,E,C>> rawStates()
- Returns:
- all the raw states defined in the state machine
states
Collection<S> states()
- Returns:
- all the states defined in the state machine
linkedStates
Collection<S> linkedStates()
- Returns:
- all linked states
orginalStates
Map<S,ImmutableState<T,S,E,C>> orginalStates()
linkedStateDataOf
StateMachineData.Reader<? extends StateMachine<?,S,E,C>,S,E,C> linkedStateDataOf(S linkedState)
Copyright © 2013-2014. All Rights Reserved.