cz.cuni.amis.pogamut.ut2004.agent.navigation
Enum NavigationState

Package class diagram package NavigationState
java.lang.Object
  extended by java.lang.Enum<NavigationState>
      extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.NavigationState
All Implemented Interfaces:
Serializable, Comparable<NavigationState>

public enum NavigationState
extends Enum<NavigationState>


Enum Constant Summary
NAVIGATING
          Navigation is working and running somewhere.
PATH_COMPUTATION_FAILED
          For some reason path to target could not be computed.
STOPPED
          Navigation was stopped for some reason.
STUCK
          The bot is stucked for some reason when attempting to reach the target
TARGET_REACHED
          Navigation reached target (and is stopped).
 
Method Summary
static NavigationState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NavigationState[] 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

STOPPED

public static final NavigationState STOPPED
Navigation was stopped for some reason.


TARGET_REACHED

public static final NavigationState TARGET_REACHED
Navigation reached target (and is stopped).


PATH_COMPUTATION_FAILED

public static final NavigationState PATH_COMPUTATION_FAILED
For some reason path to target could not be computed.


STUCK

public static final NavigationState STUCK
The bot is stucked for some reason when attempting to reach the target


NAVIGATING

public static final NavigationState NAVIGATING
Navigation is working and running somewhere.

Method Detail

values

public static NavigationState[] 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 (NavigationState c : NavigationState.values())
    System.out.println(c);

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

valueOf

public static NavigationState 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


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