org.squirrelframework.foundation.fsm
Interface StateContext<T extends StateMachine<T,S,E,C>,S,E,C>
- Type Parameters:
T - state machine typeS - state typeE - event typeC - context type
public interface StateContext<T extends StateMachine<T,S,E,C>,S,E,C>
Then context of state machine when processing any events
- Author:
- Henry.He
|
Method Summary |
C |
getContext()
|
E |
getEvent()
|
ActionExecutionService<T,S,E,C> |
getExecutor()
|
TransitionResult<T,S,E,C> |
getResult()
|
ImmutableState<T,S,E,C> |
getSourceState()
|
StateMachine<T,S,E,C> |
getStateMachine()
|
StateMachineData<T,S,E,C> |
getStateMachineData()
|
getStateMachine
StateMachine<T,S,E,C> getStateMachine()
- Returns:
- current state machine object
getStateMachineData
StateMachineData<T,S,E,C> getStateMachineData()
- Returns:
- state machine data
getSourceState
ImmutableState<T,S,E,C> getSourceState()
- Returns:
- source state of state machine
getContext
C getContext()
- Returns:
- external context object
getEvent
E getEvent()
- Returns:
- event
getResult
TransitionResult<T,S,E,C> getResult()
- Returns:
- transition result
getExecutor
ActionExecutionService<T,S,E,C> getExecutor()
- Returns:
- action executor
Copyright © 2013-2014. All Rights Reserved.