Interface Semantics<S,T>

All Superinterfaces:
Serializable
All Known Subinterfaces:
ExtendedSemantics<S,T>

public interface Semantics<S,T> extends Serializable
  • Method Details

    • setCurrentState

      void setCurrentState(S currentState)
    • getCurrentState

      S getCurrentState()
    • getExecutableTransitions

      Collection<T> getExecutableTransitions()
    • executeExecutableTransition

      ExecutionInformation executeExecutableTransition(T toExecute) throws IllegalTransitionException
      Throws:
      IllegalTransitionException
    • initialize

      void initialize(Collection<T> transitions, S initialState)
      Initializes this semantics. Note that the set of transitions is considered read only, i.e. no changes can be made to it by a Semantics<S,T> implementation. However, the initial state is not read only.
      Parameters:
      transitions -
      initialState -