public class SynchronizedStateMachine extends DeterministicStateMachine
Processor.process(Event)
,
StateMachine.getActiveState()
,
StateMachine.getActiveStates()
,
StateMachine.isInFinalState()
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.
|
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, notifyEnter, notifyExit, notifyTransition, setStartState, start, toString
getName
public SynchronizedStateMachine(java.lang.String name)
name
- the name of the state machinepublic Event process(Event event) throws FsmException
Processor
process
in interface Processor
process
in class DeterministicStateMachine
event
- the input eventFsmException
- if something failspublic State getActiveState()
StateMachine
getActiveState
in interface StateMachine
getActiveState
in class DeterministicStateMachine
StateMachine.getActiveStates()
public java.util.Set<State> getActiveStates()
StateMachine
getActiveStates
in interface StateMachine
getActiveStates
in class DeterministicStateMachine
StateMachine.getActiveState()
public boolean isInFinalState()
StateMachine
isInFinalState
in interface StateMachine
isInFinalState
in class DeterministicStateMachine
Copyright 2013 Michal Turek, AnotherFSM.