|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.xabsl.jxabsl.action.Action
public abstract class Action
Represents an action execution. This is either a subsequent option or basic behavior to be executed, or an output symbol assignment.
Field Summary | |
---|---|
protected TimeFunction |
timeFunction
|
Constructor Summary | |
---|---|
Action(TimeFunction timeFunction)
Constructor. |
Method Summary | |
---|---|
static ActionBehavior |
create(Behavior behavior,
DebugMessages debug,
TimeFunction timeFunction)
Creates an action definition which just calls a single option or basic behavior without setting any parameters. |
static Action |
create(InputSource input,
java.util.Map<java.lang.String,Option> options,
Engine engine,
OptionParameters optionParameters,
TimeFunction timeOfOptionExecution,
TimeFunction timeOfStateExecution,
java.util.List<Action> actions,
DebugMessages debug,
TimeFunction timeFunction)
Creates an action definition. |
abstract void |
execute()
Execute the action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TimeFunction timeFunction
Constructor Detail |
---|
public Action(TimeFunction timeFunction)
timeFunction
- a pointer to a function that returns the system time in ms.Method Detail |
---|
public static ActionBehavior create(Behavior behavior, DebugMessages debug, TimeFunction timeFunction)
behavior
- The referenced option or basic behavior.debug
- A stream for debug messagestimeFunction
- a pointer to a function that returns the system time in ms.public static Action create(InputSource input, java.util.Map<java.lang.String,Option> options, Engine engine, OptionParameters optionParameters, TimeFunction timeOfOptionExecution, TimeFunction timeOfStateExecution, java.util.List<Action> actions, DebugMessages debug, TimeFunction timeFunction) throws IntermediateCodeMalformedException
input
- An input source for the intermediate code. It must be opened
and read until a position where a state starts.options
- All available optionsoptionParameters
- The parameters of the optionsymbols
- All available symbolstimeOfOptionExecution
- The time how long the option is already activetimeOfStateExecution
- The time how long the current state is already activeactions
- The subsequent behaviors i.e options and basic behaviors of
the state.debu
- A stream for debug outputtimeFunction
- a pointer to a function that returns the system time in ms.
IntermediateCodeMalformedException
public abstract void execute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |