public static enum MartinNavigator.Stage extends Enum<MartinNavigator.Stage>
Enum Constant and Description |
---|
COMPLETED
Navigation finished successfully.
|
CRASHED
Navigation failed because of troublesome obstacles.
|
NAVIGATING
Navigating along the path.
|
REACHING
Running directly to the destination.
|
Modifier and Type | Field and Description |
---|---|
boolean |
failure
Whether the navigation has failed.
|
boolean |
terminated
Whether the nagivation is terminated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract MartinNavigator.Stage |
next()
Retreives the next step of navigation sequence the stage belongs to.
|
static MartinNavigator.Stage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MartinNavigator.Stage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MartinNavigator.Stage REACHING
public static final MartinNavigator.Stage NAVIGATING
public static final MartinNavigator.Stage CRASHED
public static final MartinNavigator.Stage COMPLETED
public boolean terminated
public boolean failure
public static MartinNavigator.Stage[] values()
for (MartinNavigator.Stage c : MartinNavigator.Stage.values()) System.out.println(c);
public static MartinNavigator.Stage 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 nullprotected abstract MartinNavigator.Stage next()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.