|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squirrelframework.foundation.component.impl.AbstractSubject
org.squirrelframework.foundation.fsm.impl.AbstractExecutionService<T,S,E,C>
public abstract class AbstractExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.squirrelframework.foundation.fsm.ActionExecutionService |
|---|
ActionExecutionService.ActionEvent<T extends StateMachine<T,S,E,C>,S,E,C>, ActionExecutionService.AfterExecActionEvent<T extends StateMachine<T,S,E,C>,S,E,C>, ActionExecutionService.AfterExecActionListener<T extends StateMachine<T,S,E,C>,S,E,C>, ActionExecutionService.BeforeExecActionEvent<T extends StateMachine<T,S,E,C>,S,E,C>, ActionExecutionService.BeforeExecActionListener<T extends StateMachine<T,S,E,C>,S,E,C>, ActionExecutionService.ExecActionExceptionEvent<T extends StateMachine<T,S,E,C>,S,E,C>, ActionExecutionService.ExecActionExceptionListener<T extends StateMachine<T,S,E,C>,S,E,C> |
| Field Summary | |
|---|---|
protected LinkedList<Pair<String,List<org.squirrelframework.foundation.fsm.impl.AbstractExecutionService.ActionContext<T,S,E,C>>>> |
actionBuckets
|
protected boolean |
dummyExecution
|
| Constructor Summary | |
|---|---|
AbstractExecutionService()
|
|
| Method Summary | |
|---|---|
void |
addExecActionExceptionListener(ActionExecutionService.ExecActionExceptionListener<T,S,E,C> listener)
Add action execution exception listener which can be used for monitoring execution |
void |
addExecActionListener(ActionExecutionService.AfterExecActionListener<T,S,E,C> listener)
Add after action execution listener which can be used for monitoring execution |
void |
addExecActionListener(ActionExecutionService.BeforeExecActionListener<T,S,E,C> listener)
Add before action execution listener which can be used for monitoring execution |
void |
begin(String bucketName)
Begin a action execution collection in the bucket. |
void |
defer(Action<T,S,E,C> action,
S from,
S to,
E event,
C context,
T stateMachine)
Add action and all the execution parameters into execution context; |
void |
execute()
Execute all the actions collected by front bucket. |
void |
removeExecActionExceptionListener(ActionExecutionService.ExecActionExceptionListener<T,S,E,C> listener)
Remove action execution exception listener |
void |
removeExecActionListener(ActionExecutionService.AfterExecActionListener<T,S,E,C> listener)
Remove after action execution listener |
void |
removeExecActionListener(ActionExecutionService.BeforeExecActionListener<T,S,E,C> listener)
Remove before action execution listener |
void |
reset()
Reset all deferred actions and its count |
void |
setDummyExecution(boolean dummyExecution)
Set dummy execution true will cause no action being actually invoked when calling ActionExecutionService.execute(). |
| Methods inherited from class org.squirrelframework.foundation.component.impl.AbstractSubject |
|---|
addListener, addListener, fireEvent, getListenerSize, isNotifiable, removeAllListeners, removeListener, removeListener, removeListener, removeListener, setNotifiable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.squirrelframework.foundation.component.Observable |
|---|
addListener, addListener, fireEvent, getListenerSize, isNotifiable, removeAllListeners, removeListener, removeListener, removeListener, removeListener, setNotifiable |
| Field Detail |
|---|
protected final LinkedList<Pair<String,List<org.squirrelframework.foundation.fsm.impl.AbstractExecutionService.ActionContext<T extends StateMachine<T,S,E,C>,S,E,C>>>> actionBuckets
protected boolean dummyExecution
| Constructor Detail |
|---|
public AbstractExecutionService()
| Method Detail |
|---|
public void begin(String bucketName)
ActionExecutionService
begin in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>
public void defer(Action<T,S,E,C> action,
S from,
S to,
E event,
C context,
T stateMachine)
ActionExecutionService
defer in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>action - activity to be executedfrom - source stateto - target stateevent - activity causecontext - external environment contextstateMachine - state machine referencepublic void execute()
ActionExecutionService
execute in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>public void reset()
ActionExecutionService
reset in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>public void addExecActionListener(ActionExecutionService.BeforeExecActionListener<T,S,E,C> listener)
ActionExecutionService
addExecActionListener in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>listener - action execution listenerpublic void removeExecActionListener(ActionExecutionService.BeforeExecActionListener<T,S,E,C> listener)
ActionExecutionService
removeExecActionListener in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>listener - action execution listenerpublic void addExecActionListener(ActionExecutionService.AfterExecActionListener<T,S,E,C> listener)
ActionExecutionService
addExecActionListener in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>listener - action execution listenerpublic void removeExecActionListener(ActionExecutionService.AfterExecActionListener<T,S,E,C> listener)
ActionExecutionService
removeExecActionListener in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>listener - action execution listenerpublic void addExecActionExceptionListener(ActionExecutionService.ExecActionExceptionListener<T,S,E,C> listener)
ActionExecutionService
addExecActionExceptionListener in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>listener - action execution exception listenerpublic void removeExecActionExceptionListener(ActionExecutionService.ExecActionExceptionListener<T,S,E,C> listener)
ActionExecutionService
removeExecActionExceptionListener in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>listener - action execution exception listenerpublic void setDummyExecution(boolean dummyExecution)
ActionExecutionServiceActionExecutionService.execute().
setDummyExecution in interface ActionExecutionService<T extends StateMachine<T,S,E,C>,S,E,C>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||