Interface ExtendedState

All Known Implementing Classes:
DefaultExtendedState

public interface ExtendedState
Extended states are used to supplement state machine with a variables. If extended state is used a complete condition of a state machine is a combination of its state an extended state variables.
  • Method Details

    • getVariables

      Map<Object,Object> getVariables()
      Gets the extended state variables.
      Returns:
      the extended state variables
    • get

      <T> T get(Object key, Class<T> type)
      Gets a variable which is automatically casted into a type.
      Type Parameters:
      T - the return type
      Parameters:
      key - the variable key
      type - the variable type
      Returns:
      the variable
    • setExtendedStateChangeListener

      void setExtendedStateChangeListener(ExtendedState.ExtendedStateChangeListener listener)
      Sets the extended state change listener.
      Parameters:
      listener - the new extended state change listener