public class BasicStateMachineFramework extends Object implements StateMachineFramework
| Modifier and Type | Field and Description |
|---|---|
static AtomicBoolean |
DEBUG |
| Constructor and Description |
|---|
BasicStateMachineFramework() |
BasicStateMachineFramework(FSMLogCallback logCallback) |
BasicStateMachineFramework(FSMLogCallback logCallback,
List<FSMListener> listeners) |
| Modifier and Type | Method and Description |
|---|---|
protected FSMLogCallback |
createBasicLogCallback() |
void |
handleExternalEvent(Event externalEvent,
Context context) |
void |
initFSM(Context context) |
protected void |
macroStep(Context context) |
void |
pushInternalEvent(Context context,
Event event) |
void |
registerListener(FSMListener listener) |
protected void |
saveHistoricStateDatamodel(Context context,
State active) |
protected State |
searchLCA(Context context,
State[] states) |
protected State |
searchLCA(Context context,
Transition transition) |
void |
setEngine(StateMachineEngine engine) |
void |
setLogCallback(FSMLogCallback logCallback) |
void |
unRegisterListener(FSMListener listener) |
public static final AtomicBoolean DEBUG
public BasicStateMachineFramework()
public BasicStateMachineFramework(FSMLogCallback logCallback)
public BasicStateMachineFramework(FSMLogCallback logCallback, List<FSMListener> listeners)
public void initFSM(Context context) throws ConfigurationException
initFSM in interface StateMachineFrameworkConfigurationExceptionprotected FSMLogCallback createBasicLogCallback()
public void handleExternalEvent(Event externalEvent, Context context)
handleExternalEvent in interface StateMachineFrameworkprotected void macroStep(Context context)
protected State searchLCA(Context context, Transition transition)
public void registerListener(FSMListener listener)
registerListener in interface StateMachineFrameworkpublic void unRegisterListener(FSMListener listener)
unRegisterListener in interface StateMachineFrameworkpublic void setEngine(StateMachineEngine engine)
setEngine in interface StateMachineFrameworkpublic void setLogCallback(FSMLogCallback logCallback)
Copyright © 2015. All rights reserved.