cz.cuni.amis.pogamut.udk.agent.navigation.martinnavigator
Enum MartinNavigator.Stage

Package class diagram package MartinNavigator.Stage
java.lang.Object
  extended by java.lang.Enum<MartinNavigator.Stage>
      extended by cz.cuni.amis.pogamut.udk.agent.navigation.martinnavigator.MartinNavigator.Stage
All Implemented Interfaces:
Serializable, Comparable<MartinNavigator.Stage>
Enclosing class:
MartinNavigator<PATH_ELEMENT extends ILocated>

public static enum MartinNavigator.Stage
extends Enum<MartinNavigator.Stage>

All stages the navigation can come to.


Enum Constant Summary
COMPLETED
          Navigation finished successfully.
CRASHED
          Navigation failed because of troublesome obstacles.
NAVIGATING
          Navigating along the path.
REACHING
          Running directly to the destination.
 
Field Summary
 boolean failure
          Whether the navigation has failed.
 boolean terminated
          Whether the nagivation is terminated.
 
Method Summary
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.
 
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

REACHING

public static final MartinNavigator.Stage REACHING
Running directly to the destination.


NAVIGATING

public static final MartinNavigator.Stage NAVIGATING
Navigating along the path.


CRASHED

public static final MartinNavigator.Stage CRASHED
Navigation failed because of troublesome obstacles.


COMPLETED

public static final MartinNavigator.Stage COMPLETED
Navigation finished successfully.

Field Detail

terminated

public boolean terminated
Whether the nagivation is terminated.


failure

public boolean failure
Whether the navigation has failed.

Method Detail

values

public static MartinNavigator.Stage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MartinNavigator.Stage c : MartinNavigator.Stage.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MartinNavigator.Stage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

next

protected abstract MartinNavigator.Stage next()
Retreives the next step of navigation sequence the stage belongs to.

Returns:
The next step of navigation sequence. Note: Some stages are not part of any logical navigation sequence. In such cases, this method simply returns the same stage.


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.