public class TimeoutStateMachine extends SynchronizedStateMachine
TimeoutEvent
,
start()
,
close()
Modifier and Type | Field and Description |
---|---|
protected FsmLogger |
logger
The logger.
|
INITIAL_STATE_NAME
Constructor and Description |
---|
TimeoutStateMachine(java.lang.String name)
Create the state machine.
|
TimeoutStateMachine(java.lang.String name,
boolean daemon)
Create the state machine.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Finish processing of the events and free all allocated resources.
|
java.lang.String |
getName()
Get the name of the processor.
|
void |
start()
Building of the processor is finished, prepare it to the events
processing.
|
getActiveState, getActiveStates, isInFinalState, process
addListener, addListener, addPreprocessor, addState, addTransition, easterEgg, getStates, getTransition, getTransitions, setStartState, toString
protected final FsmLogger logger
public TimeoutStateMachine(java.lang.String name)
name
- the name of the state machinepublic TimeoutStateMachine(java.lang.String name, boolean daemon)
name
- the name of the state machinedaemon
- the inner thread used for timer is a daemon threadThread
public void start() throws FsmException
Processor
start
in interface Processor
start
in interface StateMachine
start
in class DeterministicStateMachine
FsmException
- if something failsProcessor.close()
public void close()
Processor
Processor.close()
should be
avoided. The behavior is not defined and may cause unpredictable
behavior, e.g. NullPointerException
.close
in interface java.lang.AutoCloseable
close
in interface Processor
close
in interface StateMachine
close
in class DeterministicStateMachine
Processor.start()
Copyright 2012-2013 Michal Turek, AnotherFSM.