|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evelopers.unimod.runtime.interpretation.ActionExecutor
Knows how to excecute given Action against given context. Supports two types of Action return type - int and boolean.
Constructor Summary | |
ActionExecutor(ControlledObjectsMap controlledObjectsMap)
|
Method Summary | |
protected java.lang.Object |
_execute(Action action,
StateMachineContext context)
This executes given action. |
void |
execute(Action action,
StateMachineContext context)
Executes action against given context, ignoring return type. |
boolean |
executeBool(Action action,
StateMachineContext context)
Executes action against given context, treating return type as boolean. |
int |
executeNum(Action action,
StateMachineContext context)
Executes action against given context, treating return type as int. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionExecutor(ControlledObjectsMap controlledObjectsMap)
Method Detail |
protected java.lang.Object _execute(Action action, StateMachineContext context) throws com.evelopers.common.exception.SystemException
Controlled object handler
of the action is used only to find controlled object's
name. To get real controlled object instance this method uses ControlledObjectsMap
passed to constructor.
action
- action to executecontext
- action context
com.evelopers.common.exception.SystemException
- if action couldn't be executed or have thrown
exceptionpublic void execute(Action action, StateMachineContext context) throws EventProcessorException
action
- action to executecontext
- state machine runtime context
EventProcessorException
- if error while executing occurspublic int executeNum(Action action, StateMachineContext context) throws InterpreterException
action
- action to executecontext
- state machine runtime context
InterpreterException
- if error while executing occurs or return type
is not int.public boolean executeBool(Action action, StateMachineContext context) throws InterpreterException
action
- action to executecontext
- state machine runtime context
InterpreterException
- if error while executing occurs or return type
is not boolean.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |