Interface StateMachineContext<S,E>

Type Parameters:
S - the type of state
E - the type of event
All Known Implementing Classes:
DefaultStateMachineContext

public interface StateMachineContext<S,E>
StateMachineContext represents a current state of a state machine.
  • Method Details

    • getId

      String getId()
      Gets the machine id.
      Returns:
      the machine id
    • getChilds

      List<StateMachineContext<S,E>> getChilds()
      Gets the child contexts if any.
      Returns:
      the child contexts
    • getChildReferences

      List<String> getChildReferences()
      Gets the child context references if any.
      Returns:
      the child context references
    • getState

      S getState()
      Gets the state.
      Returns:
      the state
    • getEvent

      E getEvent()
      Gets the event.
      Returns:
      the event
    • getHistoryStates

      Map<S,S> getHistoryStates()
      Gets the history state mappings
      Returns:
      the history state mappings
    • getEventHeaders

      Map<String,Object> getEventHeaders()
      Gets the event headers.
      Returns:
      the event headers
    • getExtendedState

      ExtendedState getExtendedState()
      Gets the extended state.
      Returns:
      the extended state