Class ObjectStateMachine<S,E>

Type Parameters:
S - the type of state
E - the type of event
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, ReactiveStateMachineAccess<S,E>, StateMachineAccess<S,E>, Region<S,E>, StateMachine<S,E>, StateMachineReactiveLifecycle

public class ObjectStateMachine<S,E> extends AbstractStateMachine<S,E>
Specialisation of a StateMachine using objects as its State and event types.
Author:
Janne Valkealahti
  • Constructor Details

    • ObjectStateMachine

      public ObjectStateMachine(Collection<State<S,E>> states, Collection<Transition<S,E>> transitions, State<S,E> initialState)
      Instantiates a new enum state machine.
      Parameters:
      states - the states
      transitions - the transitions
      initialState - the initial state
    • ObjectStateMachine

      public ObjectStateMachine(Collection<State<S,E>> states, Collection<Transition<S,E>> transitions, State<S,E> initialState, Transition<S,E> initialTransition, org.springframework.messaging.Message<E> initialEvent, ExtendedState extendedState, UUID uuid)
      Instantiates a new enum state machine.
      Parameters:
      states - the states
      transitions - the transitions
      initialState - the initial state
      initialTransition - the initial transition
      initialEvent - the initial event
      extendedState - the extended state
      uuid - the given uuid.