Interface State


public interface State
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if it is possible to change from this state to the given state
    Returns the name of this state
    Returns a set of states to which one can change from this state
  • Method Details

    • getTransitions

      Set<State> getTransitions()
      Returns a set of states to which one can change from this state
      Returns:
      a set of states to which one can change from this state
    • canChangeTo

      boolean canChangeTo(State state)
      Returns true if it is possible to change from this state to the given state
      Parameters:
      state -
      Returns:
      true if is is possible to change from this state to the given state
    • getName

      String getName()
      Returns the name of this state
      Returns:
      the name of this state