edu.nps.moves.disenum
Enum ArticulatedPartsOffsetNumber

java.lang.Object
  extended by java.lang.Enum<ArticulatedPartsOffsetNumber>
      extended by edu.nps.moves.disenum.ArticulatedPartsOffsetNumber
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ArticulatedPartsOffsetNumber>

public enum ArticulatedPartsOffsetNumber
extends java.lang.Enum<ArticulatedPartsOffsetNumber>

Enumeration values for ArticulatedPartsOffsetNumber The enumeration values are generated from the SISO DIS XML EBV document (R35), which was obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31

Note that this has two ways to look up an enumerated instance from a value: a fast but brittle array lookup, and a slower and more garbage-intensive, but safer, method. if you want to minimize memory use, get rid of one or the other.

Copyright 2008-2009. This work is licensed under the BSD license, available at http://www.movesinstitute.org/licenses

Author:
DMcG, Jason Nelson

Enum Constant Summary
AZIMUTH
           
AZIMUTH_RATE
           
ELEVATION
           
ELEVATION_RATE
           
EXTENSION
           
EXTENSION_RATE
           
POSITION
           
POSITION_RATE
           
ROTATION
           
ROTATION_RATE
           
X
           
X_RATE
           
Y
           
Y_RATE
           
Z
           
Z_RATE
           
 
Field Summary
 java.lang.String description
          Text/english description of the enumerated value
static ArticulatedPartsOffsetNumber[] lookup
          This is an array, with each slot corresponding to an enumerated value.
 int value
          The enumerated value
 
Method Summary
static boolean enumerationForValueExists(int aVal)
          Returns true if there is an enumerated instance for this value, false otherwise.
 java.lang.String getDescription()
          Returns a text descriptioni for this enumerated value.
static java.lang.String getDescriptionForValue(int aVal)
          Returns the string description associated with the enumerated instance with this value.
static ArticulatedPartsOffsetNumber getEnumerationForValue(int aVal)
          Returns the enumerated instance with this value.
 int getValue()
          Returns the enumerated value for this enumeration
static ArticulatedPartsOffsetNumber valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ArticulatedPartsOffsetNumber[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POSITION

public static final ArticulatedPartsOffsetNumber POSITION

POSITION_RATE

public static final ArticulatedPartsOffsetNumber POSITION_RATE

EXTENSION

public static final ArticulatedPartsOffsetNumber EXTENSION

EXTENSION_RATE

public static final ArticulatedPartsOffsetNumber EXTENSION_RATE

X

public static final ArticulatedPartsOffsetNumber X

X_RATE

public static final ArticulatedPartsOffsetNumber X_RATE

Y

public static final ArticulatedPartsOffsetNumber Y

Y_RATE

public static final ArticulatedPartsOffsetNumber Y_RATE

Z

public static final ArticulatedPartsOffsetNumber Z

Z_RATE

public static final ArticulatedPartsOffsetNumber Z_RATE

AZIMUTH

public static final ArticulatedPartsOffsetNumber AZIMUTH

AZIMUTH_RATE

public static final ArticulatedPartsOffsetNumber AZIMUTH_RATE

ELEVATION

public static final ArticulatedPartsOffsetNumber ELEVATION

ELEVATION_RATE

public static final ArticulatedPartsOffsetNumber ELEVATION_RATE

ROTATION

public static final ArticulatedPartsOffsetNumber ROTATION

ROTATION_RATE

public static final ArticulatedPartsOffsetNumber ROTATION_RATE
Field Detail

value

public final int value
The enumerated value


description

public final java.lang.String description
Text/english description of the enumerated value


lookup

public static ArticulatedPartsOffsetNumber[] lookup
This is an array, with each slot corresponding to an enumerated value. This is a fast but brittle way to look up enumerated values. If there is no enumeration corresponding to the value it will fail, and it will also fail if the index it out of range of the array. But it is fast, and generates less garbage than the alternative of using getEnumerationForValue(). It should be used only in real-time environments, and be careful even then.

Use as ArticulatedPartsOffsetNumber.lookup[aVal] to get the enumeration that corresponds to a value.

In non-realtime environments, the prefered method is getEnumerationForValue().

Method Detail

values

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

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

valueOf

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

getDescriptionForValue

public static java.lang.String getDescriptionForValue(int aVal)
Returns the string description associated with the enumerated instance with this value. If there is no enumerated instance for this value, the string Invalid enumeration: is returned.


getEnumerationForValue

public static ArticulatedPartsOffsetNumber getEnumerationForValue(int aVal)
                                                           throws edu.nps.moves.siso.EnumNotFoundException
Returns the enumerated instance with this value. If there is no enumerated instance for this value, the exception is thrown.

Throws:
edu.nps.moves.siso.EnumNotFoundException

enumerationForValueExists

public static boolean enumerationForValueExists(int aVal)
Returns true if there is an enumerated instance for this value, false otherwise.


getValue

public int getValue()
Returns the enumerated value for this enumeration


getDescription

public java.lang.String getDescription()
Returns a text descriptioni for this enumerated value. This is usually used as the basis for the enumeration name.