S - the type of stateE - the type of eventpublic class EnumState<S extends java.lang.Enum<S>,E extends java.lang.Enum<E>> extends AbstractSimpleState<S,E>
State implementation where state and event is enum based.| Constructor and Description |
|---|
EnumState(S id)
Instantiates a new enum state.
|
EnumState(S id,
java.util.Collection<E> deferred)
Instantiates a new enum state.
|
EnumState(S id,
java.util.Collection<E> deferred,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions)
Instantiates a new enum state.
|
EnumState(S id,
java.util.Collection<E> deferred,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions,
PseudoState<S,E> pseudoState)
Instantiates a new enum state.
|
EnumState(S id,
java.util.Collection<E> deferred,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions,
PseudoState<S,E> pseudoState,
java.util.Collection<Region<S,E>> regions)
Instantiates a new enum state.
|
EnumState(S id,
java.util.Collection<E> deferred,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions,
PseudoState<S,E> pseudoState,
StateMachine<S,E> submachine)
Instantiates a new enum state.
|
EnumState(S id,
PseudoState<S,E> pseudoState)
Instantiates a new enum state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
entry(StateContext<S,E> context)
Initiate an entry sequence for the state.
|
void |
exit(StateContext<S,E> context)
Initiate an exit sequence for the state.
|
java.lang.String |
toString() |
getIds, getStatesgetDeferredEvents, getEntryActions, getExitActions, getId, getPseudoState, getRegions, getSubmachine, isComposite, isOrthogonal, isSimple, isSubmachineState, sendEventpublic EnumState(S id)
id - the idpublic EnumState(S id, PseudoState<S,E> pseudoState)
id - the idpseudoState - the pseudo statepublic EnumState(S id, java.util.Collection<E> deferred)
id - the iddeferred - the deferredpublic EnumState(S id, java.util.Collection<E> deferred, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions)
id - the iddeferred - the deferredentryActions - the entry actionsexitActions - the exit actionspublic EnumState(S id, java.util.Collection<E> deferred, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions, PseudoState<S,E> pseudoState)
id - the iddeferred - the deferredentryActions - the entry actionsexitActions - the exit actionspseudoState - the pseudo statepublic EnumState(S id, java.util.Collection<E> deferred, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions, PseudoState<S,E> pseudoState, java.util.Collection<Region<S,E>> regions)
id - the iddeferred - the deferredentryActions - the entry actionsexitActions - the exit actionspseudoState - the pseudo stateregions - the regionspublic EnumState(S id, java.util.Collection<E> deferred, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions, PseudoState<S,E> pseudoState, StateMachine<S,E> submachine)
id - the iddeferred - the deferredentryActions - the entry actionsexitActions - the exit actionspseudoState - the pseudo statesubmachine - the submachinepublic void exit(StateContext<S,E> context)
Statepublic void entry(StateContext<S,E> context)
State