public interface StateMachine<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
StateMachine.State |
Modifier and Type | Field and Description |
---|---|
static StateMachine.State |
ERROR |
Modifier and Type | Method and Description |
---|---|
StateMachine.State |
getStartState() |
StateMachine.State |
transition(StateMachine.State prevState,
T label) |
static final StateMachine.State ERROR
StateMachine.State getStartState()
StateMachine.State transition(StateMachine.State prevState, T label)
prevState
- label
- null
if no such transition existsStatesMergedException
- if merging of states is detectedStatesMergedException