/*
File: DeadReckoningAlgorithmField.java
CVS Info: $Id$
Compiler: jdk 1.2.2
*/
package mil.navy.nps.disEnumerations;
import mil.navy.nps.dis.*;
import mil.navy.nps.util.*;
/**
* Dead Reckoning Algorithm Field -- Indicates the type of dead reckoning algorithm used by an entity.
*@version 1.1
*@author Ronan Fauglas
*@author Don Brutzman
*
*
References:
* DIS Data Dictionary: Dead Reckoning Algorithm Field (local)
* Dead Reckoning Algorithm Field (SISO)
* JDBE:DIS Data Dictionary Version 1.0a (DIS-DD)
* Perl script (converting html enumerations to java enumerations)
* convertJdbeDisEnumerationsToJava.pl (local) or
*
* http://web.3D.org/WorkingGroups/vrtp/mil/navy/nps/disEnumerations/convertJdbeDisEnumerationsToJava.pl
* "Named Constants," The Java Programming Language, Gosling & Arnold.
*
*Explanation:
*This file has been automatically generated from a local copy of the
* DIS Data Dictionary at
* http://SISO.sc.ist.ucf.edu/dis/dis-dd/
* html source file by
* convertJdbeDisEnumerationsToJava.pl (local) or
* http://www.web3D.org/WorkingGroups/vrtp/mil/navy/nps/disEnumerations/convertJdbeDisEnumerationsToJava.pl.
*
* This is effectively a C-style enumeration. Java doesn't do enumerations
* like C, so you have to wrap a class around it. It's a bit more typing,
* but pretty simple-minded.
* Note that the variables are declared public. The default for access
* is package-wide, but these variables might need to be accessed from
* outside the package. Since all the variables are final (i.e. constant), nobody can
* change anything anyway, so this is no biggie.
* To use these enumerations in your Java code, import the package first:
* import mil.navy.nps.disEnumerations.*;
* You access this via something like DeadReckoningAlgorithmField.DRM8
, i.e. combine
* the class name, a period, and a class variable (enumeration) name.
*
*
History:
* 21jan98 /Ronan Fauglas /New
* 30mar99 /Don Brutzman /Revised Javadoc, many more enumeration classes
*
*Location:
*DeadReckoningAlgorithmField.java (local)
*
* http://www.web3D.org/WorkingGroups/vrtp/mil/navy/nps/disEnumerations/DeadReckoningAlgorithmField.java
*
*/
public class DeadReckoningAlgorithmField extends Object
{
/**
*(0) Other
*/
public static final short OTHER = 0;
/**
*(1) Static (Entity does not move)
*/
public static final short STATIC = 1;
/**
*(2) DRM(F, P, W)
*/
public static final short DRM = 2;
/**
*(3) DRM(R, P, W)
*/
public static final short DRM2 = 3;
/**
*(4) DRM(R, V, W)
*/
public static final short DRM3 = 4;
/**
*(5) DRM(F, V, W)
*/
public static final short DRM4 = 5;
/**
*(6) DRM(F, P, B)
*/
public static final short DRM5 = 6;
/**
*(7) DRM(R, P, B)
*/
public static final short DRM6 = 7;
/**
*(8) DRM(R, V, B)
*/
public static final short DRM7 = 8;
/**
*(9) DRM(F, V, B)
*/
public static final short DRM8 = 9;
/**
* Returns a string containing the enumeration name which corresponds to an enumeration value,
* as in DeadReckoningAlgorithmField.toString (0)
returns the string "OTHER
"
*/
public static String toString(int idNumber)
{
switch (idNumber) {
case 0: return "Other";
case 1: return "Static (Entity does not move)";
case 2: return "DRM(F, P, W)";
case 3: return "DRM(R, P, W)";
case 4: return "DRM(R, V, W)";
case 5: return "DRM(F, V, W)";
case 6: return "DRM(F, P, B)";
case 7: return "DRM(R, P, B)";
case 8: return "DRM(R, V, B)";
case 9: return "DRM(F, V, B)";
default : return "";
}
}//end of toString
}//End of class