Interface FSMEnumMutableBuilderType<T extends Enum<T>>

Type Parameters:
T - The type of state values

public interface FSMEnumMutableBuilderType<T extends Enum<T>>
The type of builders for mutable enum-based finite state machines.
  • Method Details

    • addTransition

      FSMEnumMutableBuilderType<T> addTransition(T from, T to)
      Add a transition from state from to state to.
      Parameters:
      from - The starting state
      to - The target state
      Returns:
      This builder
    • build

      FSMEnumMutable<T> build()
      Returns:
      A new finite state machine based on all of the parameters given so far