Interface State

  • All Known Implementing Classes:
    SimpleState

    public interface State
    Stores information relevant for one of the states. States themselves are intended to be immutable, though the state machine itself obviously has state.

    This interface can be used in two ways. The first is to implement the interface in custom state classes or enums, and store all configuration related to those states in the class. The second approach is to use the SimpleState implementation to avoid having to create state classes.

    • Method Detail

      • getName

        java.lang.String getName()
      • getDuration

        float getDuration()
      • getNext

        State getNext()
      • isInterruptable

        boolean isInterruptable()