|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ActionResult> cz.cuni.amis.pogamut.sposh.executor.ActionResult
public enum ActionResult
The value returned by the primitive via IWorkExecutor
that can modify the behavior of posh stack evaluation.
Enum Constant Summary | |
---|---|
FAILED
Indicated failure of the action. |
|
FINISHED
Indicates that the action has finished and PoshEngine may search for another action to execute. |
|
RUNNING
Indicates that action is running within the environment and needs time to finish its execution. |
|
RUNNING_ONCE
Indicates that action is running within the environment BUT it wants to be running for only ONE cycle. |
Method Summary | |
---|---|
static ActionResult |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ActionResult[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ActionResult FAILED
Failing an action means to roll back intention-stack of the drive down to the last adapt (no adapt == delete the stack).
Note that StateWorkExecutor
won't stop PoshEngine execution upon this result.
public static final ActionResult RUNNING
PoshEngine won't delete the action from the stack and will wait for its full execution.
Note that StateWorkExecutor
will execute PoshEngine cycles until it hits some RUNNING/RUNNING_ONCE action.
public static final ActionResult RUNNING_ONCE
PoshEngine will delete the action from the stack and terminates with SURFACE.
Note that StateWorkExecutor
will execute PoshEngine cycles until it hits some RUNNING/RUNNING_ONCE action.
public static final ActionResult FINISHED
Note that StateWorkExecutor
will continue running PoshEngine after FINISHING some action (until some RUNNING/RUNNING_ONCE action is executed).
Method Detail |
---|
public static ActionResult[] values()
for (ActionResult c : ActionResult.values()) System.out.println(c);
public static ActionResult valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |