| Modifier and Type | Method | Description |
|---|---|---|
static <T extends Enum<T>> |
builder(T init) |
Create a new builder.
|
T |
current() |
|
void |
transition(T state) |
Transition from the current state to the given state.
|
public static <T extends Enum<T>> FSMEnumMutableBuilderType<T> builder(T init)
T - The type of statesinit - The initial statepublic T current()
public void transition(T state) throws FSMTransitionException
state - The target stateFSMTransitionException - If no transition is allowed between the
statesCopyright © 2017 <code@io7m.com> http://io7m.com