faa.tg.atvoice.message
Class SimState

java.lang.Object
  extended by faa.tg.atvoice.message.SimState

public class SimState
extends java.lang.Object

This class contains the vlaues that can be used for the State of the Simulation See the source SimState.java

Version:
$Id: SimState.java,v 1.3 2007/04/18 12:11:03 samf Exp $
Author:
Sam Fullerton, L-3 Titan

Field Summary
static SimState ABORT_REPLAY
           
static SimState BEGIN_EXERCISE
           
static java.lang.String CVS_VERSION_ID
          The CVS Version ID.
static SimState END_EXERCISE
           
static SimState FREEZE_EXERCISE
           
static SimState FREEZE_REPLAY
           
private  java.lang.String name
           
static SimState REPLAY_EXERCISE
           
static SimState REPLAY_EXERCISE_2
           
static SimState RESUME_EXERCISE
           
static SimState RESUME_REPLAY
           
private  byte simState
           
static SimState UNKNOWN_STATE
           
private static java.util.Hashtable<java.lang.Integer,SimState> values
           
 
Constructor Summary
private SimState(java.lang.String name, byte simState)
          Constructor
 
Method Summary
 byte getState()
          Returns the number used to represent the state of the simulation
static SimState getStateByNumber(byte simState)
          Returns the sim state for the given number
 java.lang.String toString()
          Returns a string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID.

See Also:
Constant Field Values

name

private java.lang.String name

simState

private byte simState

values

private static final java.util.Hashtable<java.lang.Integer,SimState> values

BEGIN_EXERCISE

public static final SimState BEGIN_EXERCISE

END_EXERCISE

public static final SimState END_EXERCISE

FREEZE_EXERCISE

public static final SimState FREEZE_EXERCISE

RESUME_EXERCISE

public static final SimState RESUME_EXERCISE

REPLAY_EXERCISE

public static final SimState REPLAY_EXERCISE

FREEZE_REPLAY

public static final SimState FREEZE_REPLAY

RESUME_REPLAY

public static final SimState RESUME_REPLAY

REPLAY_EXERCISE_2

public static final SimState REPLAY_EXERCISE_2

ABORT_REPLAY

public static final SimState ABORT_REPLAY

UNKNOWN_STATE

public static final SimState UNKNOWN_STATE
Constructor Detail

SimState

private SimState(java.lang.String name,
                 byte simState)
Constructor

Parameters:
name - - the name of the sim state
simState - - number used to represent sim state
Method Detail

getStateByNumber

public static SimState getStateByNumber(byte simState)
Returns the sim state for the given number

Parameters:
simState - - the sim state to look for
Returns:
the sim state for the given number, or UNKNOWN_STATE if unable to find

toString

public java.lang.String toString()
Returns a string representation of this object

Overrides:
toString in class java.lang.Object

getState

public byte getState()
Returns the number used to represent the state of the simulation