public class SynchronizedStateMachine extends DeterministicStateMachine
Processor.process(Event),
StateMachine.getActiveState(),
StateMachine.getActiveStates(),
StateMachine.isInFinalState()| Modifier and Type | Field and Description |
|---|---|
protected FsmLogger |
logger
The logger.
|
INITIAL_STATE_NAME| Constructor and Description |
|---|
SynchronizedStateMachine(java.lang.String name)
Create the object.
|
| Modifier and Type | Method and Description |
|---|---|
State |
getActiveState()
Get the currently active state.
|
java.util.Set<State> |
getActiveStates()
Get the currently active states.
|
java.lang.String |
getName()
Get the name of the processor.
|
boolean |
isInFinalState()
Is the active state a final state?
|
Event |
process(Event event)
Process the event.
|
addListener, addListener, addPreprocessor, addState, addTransition, close, easterEgg, getStates, getTransition, getTransitions, setStartState, start, toStringprotected final FsmLogger logger
public SynchronizedStateMachine(java.lang.String name)
name - the name of the state machinepublic Event process(Event event) throws FsmException
Processorprocess in interface Processorprocess in class DeterministicStateMachineevent - the input eventFsmException - if something failspublic State getActiveState()
StateMachinegetActiveState in interface StateMachinegetActiveState in class DeterministicStateMachineStateMachine.getActiveStates()public java.util.Set<State> getActiveStates()
StateMachinegetActiveStates in interface StateMachinegetActiveStates in class DeterministicStateMachineStateMachine.getActiveState()public boolean isInFinalState()
StateMachineisInFinalState in interface StateMachineisInFinalState in class DeterministicStateMachineCopyright 2012-2013 Michal Turek, AnotherFSM.