org.squirrelframework.foundation.fsm
Interface StateMachineData<T extends StateMachine<T,S,E,C>,S,E,C>
- Type Parameters:
T - type of State MachineS - type of StateE - type of EventC - type of Context
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- StateMachineDataImpl
public interface StateMachineData<T extends StateMachine<T,S,E,C>,S,E,C>
- extends Serializable
This class is used to hold all the internal data of state machine. User can
dump a state machine data through dump(Reader) which
means take a snapshot of state machine or save the current state machine
execution state.
- Author:
- Henry.He
|
Nested Class Summary |
static interface |
StateMachineData.Reader<T extends StateMachine<T,S,E,C>,S,E,C>
|
static interface |
StateMachineData.Writer<T extends StateMachine<T,S,E,C>,S,E,C>
|
|
Method Summary |
void |
dump(StateMachineData.Reader<T,S,E,C> src)
Dump source state machine data (expect transient data, such as states)
into current state machine data |
StateMachineData.Reader<T,S,E,C> |
read()
|
StateMachineData.Writer<T,S,E,C> |
write()
|
dump
void dump(StateMachineData.Reader<T,S,E,C> src)
- Dump source state machine data (expect transient data, such as states)
into current state machine data
- Parameters:
src - source state machine data
read
StateMachineData.Reader<T,S,E,C> read()
- Returns:
- state machine data reader
write
StateMachineData.Writer<T,S,E,C> write()
- Returns:
- state machine data writer
Copyright © 2013-2014. All Rights Reserved.