S - the type of stateE - the type of eventpublic class DefaultStateMachineContext<S,E> extends java.lang.Object implements StateMachineContext<S,E>
StateMachineContext.| Constructor and Description |
|---|
DefaultStateMachineContext(java.util.List<StateMachineContext<S,E>> childs,
S state,
E event,
java.util.Map<java.lang.String,java.lang.Object> eventHeaders,
ExtendedState extendedState)
Instantiates a new default state machine context.
|
DefaultStateMachineContext(java.util.List<StateMachineContext<S,E>> childs,
S state,
E event,
java.util.Map<java.lang.String,java.lang.Object> eventHeaders,
ExtendedState extendedState,
java.util.Map<S,S> historyStates)
Instantiates a new default state machine context.
|
DefaultStateMachineContext(java.util.List<StateMachineContext<S,E>> childs,
S state,
E event,
java.util.Map<java.lang.String,java.lang.Object> eventHeaders,
ExtendedState extendedState,
java.util.Map<S,S> historyStates,
java.lang.String id)
Instantiates a new default state machine context.
|
DefaultStateMachineContext(S state,
E event,
java.util.Map<java.lang.String,java.lang.Object> eventHeaders,
ExtendedState extendedState)
Instantiates a new default state machine context.
|
DefaultStateMachineContext(S state,
E event,
java.util.Map<java.lang.String,java.lang.Object> eventHeaders,
ExtendedState extendedState,
java.util.Map<S,S> historyStates)
Instantiates a new default state machine context.
|
DefaultStateMachineContext(S state,
E event,
java.util.Map<java.lang.String,java.lang.Object> eventHeaders,
ExtendedState extendedState,
java.util.Map<S,S> historyStates,
java.lang.String id)
Instantiates a new default state machine context.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<StateMachineContext<S,E>> |
getChilds()
Gets the child contexts if any.
|
E |
getEvent()
Gets the event.
|
java.util.Map<java.lang.String,java.lang.Object> |
getEventHeaders()
Gets the event headers.
|
ExtendedState |
getExtendedState()
Gets the extended state.
|
java.util.Map<S,S> |
getHistoryStates()
Gets the history state mappings
|
java.lang.String |
getId()
Gets the machine id.
|
S |
getState()
Gets the state.
|
java.lang.String |
toString() |
public DefaultStateMachineContext(S state, E event, java.util.Map<java.lang.String,java.lang.Object> eventHeaders, ExtendedState extendedState)
state - the stateevent - the eventeventHeaders - the event headersextendedState - the extended statepublic DefaultStateMachineContext(S state, E event, java.util.Map<java.lang.String,java.lang.Object> eventHeaders, ExtendedState extendedState, java.util.Map<S,S> historyStates)
state - the stateevent - the eventeventHeaders - the event headersextendedState - the extended statehistoryStates - the history state mappingspublic DefaultStateMachineContext(S state, E event, java.util.Map<java.lang.String,java.lang.Object> eventHeaders, ExtendedState extendedState, java.util.Map<S,S> historyStates, java.lang.String id)
state - the stateevent - the eventeventHeaders - the event headersextendedState - the extended statehistoryStates - the history state mappingsid - the machine idpublic DefaultStateMachineContext(java.util.List<StateMachineContext<S,E>> childs, S state, E event, java.util.Map<java.lang.String,java.lang.Object> eventHeaders, ExtendedState extendedState)
childs - the child state machine contextsstate - the stateevent - the eventeventHeaders - the event headersextendedState - the extended statepublic DefaultStateMachineContext(java.util.List<StateMachineContext<S,E>> childs, S state, E event, java.util.Map<java.lang.String,java.lang.Object> eventHeaders, ExtendedState extendedState, java.util.Map<S,S> historyStates)
childs - the child state machine contextsstate - the stateevent - the eventeventHeaders - the event headersextendedState - the extended statehistoryStates - the history state mappingspublic DefaultStateMachineContext(java.util.List<StateMachineContext<S,E>> childs, S state, E event, java.util.Map<java.lang.String,java.lang.Object> eventHeaders, ExtendedState extendedState, java.util.Map<S,S> historyStates, java.lang.String id)
childs - the child state machine contextsstate - the stateevent - the eventeventHeaders - the event headersextendedState - the extended statehistoryStates - the history state mappingsid - the machine idpublic java.lang.String getId()
StateMachineContextgetId in interface StateMachineContext<S,E>public java.util.List<StateMachineContext<S,E>> getChilds()
StateMachineContextgetChilds in interface StateMachineContext<S,E>public S getState()
StateMachineContextgetState in interface StateMachineContext<S,E>public java.util.Map<S,S> getHistoryStates()
StateMachineContextgetHistoryStates in interface StateMachineContext<S,E>public E getEvent()
StateMachineContextgetEvent in interface StateMachineContext<S,E>public java.util.Map<java.lang.String,java.lang.Object> getEventHeaders()
StateMachineContextgetEventHeaders in interface StateMachineContext<S,E>public ExtendedState getExtendedState()
StateMachineContextgetExtendedState in interface StateMachineContext<S,E>public java.lang.String toString()
toString in class java.lang.Object