public abstract class FiniteStateMachine extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
FiniteStateMachine() |
| Modifier and Type | Method and Description |
|---|---|
protected State |
getState() |
protected void |
initialize(State state,
Set<Transition> transitions) |
protected void |
lock() |
protected <T> void |
transition(Event<T> event,
State state) |
protected boolean |
tryLock() |
protected void |
unlock() |
protected State getState()
protected void initialize(State state, Set<Transition> transitions)
protected void lock()
protected <T> void transition(Event<T> event, State state) throws FiniteStateMachineException, NullPointerException, TransitionFailedException, TransitionNotFoundException
protected boolean tryLock()
protected void unlock()
Copyright © 2016. All rights reserved.