org.squirrelframework.foundation.fsm
Interface StateContext<T extends StateMachine<T,S,E,C>,S,E,C>

Type Parameters:
T - state machine type
S - state type
E - event type
C - 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()
           
 

Method Detail

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.