S - the type of stateE - the type of eventpublic class EnumStateMachine<S extends java.lang.Enum<S>,E extends java.lang.Enum<E>> extends AbstractStateMachine<S,E>
StateMachine using enums
as its State and event types.StateMachineObjectSupport.StateMachineListenerRelay| Constructor and Description |
|---|
EnumStateMachine(java.util.Collection<State<S,E>> states,
java.util.Collection<Transition<S,E>> transitions,
State<S,E> initialState)
Instantiates a new enum state machine.
|
EnumStateMachine(java.util.Collection<State<S,E>> states,
java.util.Collection<Transition<S,E>> transitions,
State<S,E> initialState,
Transition<S,E> initialTransition,
org.springframework.messaging.Message<E> initialEvent,
ExtendedState extendedState)
Instantiates a new enum state machine.
|
acceptEvent, addStateListener, doStart, doStop, doWithAllRegions, getExtendedState, getInitialState, getState, getStates, getTransitions, isComplete, onInit, removeStateListener, sendEvent, sendEvent, setHistoryState, setRelay, stateChangedInRelay, toStringgetStateListener, getStateMachineEventPublisher, notifyStateChanged, notifyStateEntered, notifyStateExited, notifyStateMachineStarted, notifyStateMachineStopped, notifyTransition, notifyTransitionEnd, notifyTransitionStart, setContextEventsEnabled, setStateMachineEventPublisherafterPropertiesSet, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, start, stop, stoppublic EnumStateMachine(java.util.Collection<State<S,E>> states, java.util.Collection<Transition<S,E>> transitions, State<S,E> initialState)
states - the statestransitions - the transitionsinitialState - the initial statepublic EnumStateMachine(java.util.Collection<State<S,E>> states, java.util.Collection<Transition<S,E>> transitions, State<S,E> initialState, Transition<S,E> initialTransition, org.springframework.messaging.Message<E> initialEvent, ExtendedState extendedState)
states - the statestransitions - the transitionsinitialState - the initial stateinitialTransition - the initial transitioninitialEvent - the initial eventextendedState - the extended state