S
- the type of stateE
- the type of eventpublic class ObjectStateMachine<S,E> extends AbstractStateMachine<S,E>
StateMachine
using objects
as its State
and event types.StateMachineObjectSupport.StateMachineListenerRelay
Constructor and Description |
---|
ObjectStateMachine(java.util.Collection<State<S,E>> states,
java.util.Collection<Transition<S,E>> transitions,
State<S,E> initialState)
Instantiates a new enum state machine.
|
ObjectStateMachine(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, addStateMachineInterceptor, doDestroy, doStart, doStop, getExtendedState, getHistoryState, getId, getInitialState, getState, getStateMachineAccessor, getStates, getTransitions, getUuid, hasStateMachineError, isComplete, onInit, removeStateListener, resetStateMachine, sendEvent, sendEvent, setBeanFactory, setForwardedInitialEvent, setHistoryState, setId, setInitialEnabled, setRelay, setStateMachineError, stateChangedInRelay, toString
getBeanName, getStateListener, getStateMachineEventPublisher, getStateMachineInterceptors, notifyEventNotAccepted, notifyExtendedStateChanged, notifyStateChanged, notifyStateEntered, notifyStateExited, notifyStateMachineError, notifyStateMachineStarted, notifyStateMachineStopped, notifyTransition, notifyTransitionEnd, notifyTransitionStart, setBeanName, setContextEventsEnabled, setStateMachineEventPublisher, setStateMachineInterceptors
afterPropertiesSet, destroy, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskExecutor, setTaskScheduler, start, stop, stop
public ObjectStateMachine(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 ObjectStateMachine(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