cz.cuni.amis.pogamut.ut2004.agent.navigation.loquenavigator
Enum LoqueNavigator.Stage

java.lang.Object
  extended by java.lang.Enum<LoqueNavigator.Stage>
      extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.loquenavigator.LoqueNavigator.Stage
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LoqueNavigator.Stage>
Enclosing class:
LoqueNavigator<PATH_ELEMENT extends ILocated>

public static enum LoqueNavigator.Stage
extends java.lang.Enum<LoqueNavigator.Stage>

All stages the navigation can come to.


Enum Constant Summary
AWAITING_MOVER
          Waiting for a mover to arrive.
CANCELED
          Navigation cancelled by outer force.
COMPLETED
          Navigation finished successfully.
CRASHED
          Navigation failed because of troublesome obstacles.
NAVIGATING
          Navigating along the path.
REACHING
          Running directly to the destination.
RIDING_MOVER
          Waiting for a mover to ferry.
TELEPORT
          We're going through the teleport.
TIMEOUT
          Navigation timeout reached.
 
Field Summary
 boolean failure
          Whether the navigation has failed.
 boolean teleport
          We're going through the teleport.
 boolean terminated
          Whether the nagivation is terminated.
 
Method Summary
protected static LoqueNavigator.Stage FirstMoverStage()
          Returns the first step of mover sequence.
protected abstract  LoqueNavigator.Stage next()
          Retreives the next step of navigation sequence the stage belongs to.
protected static LoqueNavigator.Stage TeleporterStage()
          Returns the first step of the teleporter sequence.
static LoqueNavigator.Stage valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LoqueNavigator.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 LoqueNavigator.Stage REACHING
Running directly to the destination.


NAVIGATING

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


AWAITING_MOVER

public static final LoqueNavigator.Stage AWAITING_MOVER
Waiting for a mover to arrive.


RIDING_MOVER

public static final LoqueNavigator.Stage RIDING_MOVER
Waiting for a mover to ferry.


CANCELED

public static final LoqueNavigator.Stage CANCELED
Navigation cancelled by outer force.


TIMEOUT

public static final LoqueNavigator.Stage TIMEOUT
Navigation timeout reached.


CRASHED

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


COMPLETED

public static final LoqueNavigator.Stage COMPLETED
Navigation finished successfully.


TELEPORT

public static final LoqueNavigator.Stage TELEPORT
We're going through the teleport.

Field Detail

terminated

public boolean terminated
Whether the nagivation is terminated.


failure

public boolean failure
Whether the navigation has failed.


teleport

public boolean teleport
We're going through the teleport.

Method Detail

values

public static LoqueNavigator.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 (LoqueNavigator.Stage c : LoqueNavigator.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 LoqueNavigator.Stage valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

next

protected abstract LoqueNavigator.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.

FirstMoverStage

protected static LoqueNavigator.Stage FirstMoverStage()
Returns the first step of mover sequence.

Returns:
The first step of mover sequence.

TeleporterStage

protected static LoqueNavigator.Stage TeleporterStage()
Returns the first step of the teleporter sequence.

Returns: