com.azalient.apo.enums
Enum TurnAngle

java.lang.Object
  extended by java.lang.Enum<TurnAngle>
      extended by com.azalient.apo.enums.TurnAngle
All Implemented Interfaces:
Serializable, Comparable<TurnAngle>

public enum TurnAngle
extends Enum<TurnAngle>

Categorisations of turns based on angle: left, right, ahead, ...


Enum Constant Summary
AHEAD
           
AHEAD_LEFT
           
AHEAD_RIGHT
           
LEFT
           
RIGHT
           
 
Field Summary
static double AQ
           
 
Method Summary
static TurnAngle turnAngle(ILink link, ILink exit, boolean onRight)
           
static TurnAngle turnAngle(IStream s, boolean onRight)
           
static TurnAngle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TurnAngle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LEFT

public static final TurnAngle LEFT

RIGHT

public static final TurnAngle RIGHT

AHEAD

public static final TurnAngle AHEAD

AHEAD_LEFT

public static final TurnAngle AHEAD_LEFT

AHEAD_RIGHT

public static final TurnAngle AHEAD_RIGHT
Field Detail

AQ

public static final double AQ
See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

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

turnAngle

public static TurnAngle turnAngle(IStream s,
                                  boolean onRight)

turnAngle

public static TurnAngle turnAngle(ILink link,
                                  ILink exit,
                                  boolean onRight)