public class BasePathExecutorState extends Object implements IPathExecutorState
IPathExecutorState containing just the state.
Do not instantiated your own objects - use preinstantiated objects (constants), e.g., BasePathExecutor#INSTANTIATED, etc.
(The only exception is the PathExecutorState.SWITCHED_TO_ANOTHER_PATH_ELEMENT state where you always have to instantiate
this class to reraise the same event again.)
Use getState(PathExecutorState) to translate PathExecutorState into BasePathExecutorState.
| Modifier and Type | Field and Description |
|---|---|
static BasePathExecutorState |
FOLLOW_PATH_CALLED
Corresponds to the
PathExecutorState.FOLLOW_PATH_CALLED state. |
static BasePathExecutorState |
INSTANTIATED
Corresponds to the
PathExecutorState.INSTANTIATED state. |
static BasePathExecutorState |
PATH_COMPUTATION_FAILED
Corresponds to the
PathExecutorState.PATH_COMPUTATION_FAILED state. |
static BasePathExecutorState |
PATH_COMPUTED
Corresponds to the
PathExecutorState.PATH_COMPUTED state. |
static BasePathExecutorState |
STOPPED
Corresponds to the
PathExecutorState.STOPPED state. |
static BasePathExecutorState |
STUCK
Corresponds to the
PathExecutorState.STUCK state. |
static BasePathExecutorState |
SWITCHED_TO_ANOTHER_PATH_ELEMENT
Corresponds to the
PathExecutorState.SWITCHED_TO_ANOTHER_PATH_ELEMENT state. |
static BasePathExecutorState |
TARGET_REACHED
Corresponds to the
PathExecutorState.TARGET_REACHED state. |
| Constructor and Description |
|---|
BasePathExecutorState(PathExecutorState state)
Instantiated the path executor with the given state.
|
| Modifier and Type | Method and Description |
|---|---|
PathExecutorState |
getState()
Returns current high-level state of the
IPathExecutor. |
static BasePathExecutorState |
getState(PathExecutorState state) |
public static final BasePathExecutorState INSTANTIATED
PathExecutorState.INSTANTIATED state.public static final BasePathExecutorState FOLLOW_PATH_CALLED
PathExecutorState.FOLLOW_PATH_CALLED state.public static final BasePathExecutorState PATH_COMPUTED
PathExecutorState.PATH_COMPUTED state.public static final BasePathExecutorState PATH_COMPUTATION_FAILED
PathExecutorState.PATH_COMPUTATION_FAILED state.public static final BasePathExecutorState SWITCHED_TO_ANOTHER_PATH_ELEMENT
PathExecutorState.SWITCHED_TO_ANOTHER_PATH_ELEMENT state.public static final BasePathExecutorState TARGET_REACHED
PathExecutorState.TARGET_REACHED state.public static final BasePathExecutorState STUCK
PathExecutorState.STUCK state.public static final BasePathExecutorState STOPPED
PathExecutorState.STOPPED state.public BasePathExecutorState(PathExecutorState state)
This constructor is meant to be used only by BasePathExecutor descendants! If you want to use it,
it is advised to use predefined constants. (The only exception is the PathExecutorState.SWITCHED_TO_ANOTHER_PATH_ELEMENT state.)
state - public static BasePathExecutorState getState(PathExecutorState state)
public PathExecutorState getState()
IPathExecutorStateIPathExecutor.getState in interface IPathExecutorStateCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.