|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.agent.navigation.impl.BasePathExecutorState
public class BasePathExecutorState
Represents simple implementation of the 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.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
BasePathExecutorState(PathExecutorState state)
Instantiated the path executor with the given state. |
|
| Method Summary | |
|---|---|
PathExecutorState |
getState()
Returns current high-level state of the IPathExecutor. |
static BasePathExecutorState |
getState(PathExecutorState state)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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.
| Constructor Detail |
|---|
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 - | Method Detail |
|---|
public static BasePathExecutorState getState(PathExecutorState state)
public PathExecutorState getState()
IPathExecutorStateIPathExecutor.
getState in interface IPathExecutorState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||