|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manages life cycle of StateMachineConfig
. Every state machine is
associated with exactly one state machine config manager. So different
instances of state machine in model (e.g. one submachine included in
different states) are managed by one state machine config manager. To
identify different instances of the same machine StateMachinePath
is
used.
Method Summary | |
void |
dispose(StateMachinePath path,
StateMachineContext context,
StateMachineConfig finalConfig)
Disposes config store. |
void |
init(StateMachinePath path,
StateMachineContext context,
StateMachineConfig initialConfig)
Initializes config store. |
StateMachineConfig |
load(StateMachinePath path,
StateMachineContext context)
Loads config for given path from some store. |
void |
store(StateMachinePath path,
StateMachineContext context,
StateMachineConfig config)
Stores given config against given path. |
Method Detail |
public void init(StateMachinePath path, StateMachineContext context, StateMachineConfig initialConfig)
path
- path to state machine instanceinitialConfig
- initial config of the state machinepublic StateMachineConfig load(StateMachinePath path, StateMachineContext context)
null
. It will
lead to init(com.evelopers.unimod.runtime.StateMachinePath, com.evelopers.unimod.runtime.context.StateMachineContext, com.evelopers.unimod.runtime.StateMachineConfig)
method invocation.
path
- path to state machine config to loadcontext
- state machine context that has come with event
public void store(StateMachinePath path, StateMachineContext context, StateMachineConfig config)
path
- path to state machine config to storecontext
- state machine context that has come with eventconfig
- state machine config to storepublic void dispose(StateMachinePath path, StateMachineContext context, StateMachineConfig finalConfig)
AbstractEventProcessor
will call this method when state machine
comes to final state.
path
- path to state machine instancefinalConfig
- current final config of the state machine
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |