S
- the type of stateE
- the type of eventpublic class HistoryPseudoState<S,E> extends AbstractPseudoState<S,E>
PseudoState
.Constructor and Description |
---|
HistoryPseudoState(PseudoStateKind kind,
StateHolder<S,E> containingState)
Instantiates a new history pseudo state.
|
HistoryPseudoState(PseudoStateKind kind,
StateHolder<S,E> defaultState,
StateHolder<S,E> containingState)
Instantiates a new history pseudo state.
|
Modifier and Type | Method and Description |
---|---|
State<S,E> |
entry(StateContext<S,E> context)
Initiate an entry sequence for the state and return a next
state where state machine should go.
|
State<S,E> |
getState()
Gets the current recorded state.
|
void |
setState(State<S,E> state)
Sets the current recorded state.
|
addPseudoStateListener, exit, getKind, notifyContext
public HistoryPseudoState(PseudoStateKind kind, StateHolder<S,E> containingState)
kind
- the kindcontainingState
- the parent containing statepublic HistoryPseudoState(PseudoStateKind kind, StateHolder<S,E> defaultState, StateHolder<S,E> containingState)
kind
- the kinddefaultState
- the default history statecontainingState
- the parent containing statepublic State<S,E> entry(StateContext<S,E> context)
PseudoState
entry
in interface PseudoState<S,E>
entry
in class AbstractPseudoState<S,E>
context
- the contextpublic void setState(State<S,E> state)
state
- the state