public enum ActionResult extends Enum<ActionResult>
IWorkExecutor that can modify the behavior of posh stack evaluation.| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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).
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 nameNullPointerException - if the argument is nullCopyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.