faa.tg.atvoice.message
Class AcidStatus

java.lang.Object
  extended by faa.tg.atvoice.message.AtVoiceMessage
      extended by faa.tg.atvoice.message.AcidStatus

public class AcidStatus
extends AtVoiceMessage

This class contains the Aircraft Identification Status Message which is used to notify the AtVoice as to the status of an aircraft on a controller's frequency. See the source AcidStatus.java

Version:
$Id: AcidStatus.java,v 1.8 2007/06/21 15:14:43 samf Exp $
Author:
JimH, L-3 Titan

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID.
private  AcidStatuses mCmd
           
private  java.lang.String mCmdData
           
static int PADDING
          How much padding to add to the end of the message
 
Fields inherited from class faa.tg.atvoice.message.AtVoiceMessage
ACID_PLUS_ONE, ACID_SIZE, BYTE_SIZE, CHAR_SIZE, DATA_LENGTH, DOUBLE_SIZE, FLOAT_SIZE, FREQUENCY, HOSTNAME, INTEGER_SIZE, LITERAL, mData, mDataLength, mMessageType, PILOT_RESPONSE, SHORT_SIZE, TAG
 
Constructor Summary
AcidStatus(java.lang.String aAcid, AcidStatuses aCmd)
          Constructor
 
Method Summary
 AcidStatuses getCommand()
          Returns the command intsruction to ad or delte an aircraft from the AtVoice lookup table.
 java.lang.String getCommandData()
          Returns the Acid of the flight to add or delete
protected  void packData()
          Properly format the byte array to be written out to the wire
 java.lang.String toString()
          Returns a string representation of this object Overwrites AtVoiceMessage.toString()
protected  void unpackData()
          Interpret data
 
Methods inherited from class faa.tg.atvoice.message.AtVoiceMessage
getType, write
 
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

mCmd

private AcidStatuses mCmd

mCmdData

private java.lang.String mCmdData

PADDING

public static final int PADDING
How much padding to add to the end of the message

See Also:
Constant Field Values
Constructor Detail

AcidStatus

public AcidStatus(java.lang.String aAcid,
                  AcidStatuses aCmd)
Constructor

Parameters:
aAcid - - the identify of the aircraft this message is for
aCmd - - what to do with the aircraft
Method Detail

unpackData

protected void unpackData()
Interpret data

Specified by:
unpackData in class AtVoiceMessage

packData

protected void packData()
Properly format the byte array to be written out to the wire

Specified by:
packData in class AtVoiceMessage

getCommand

public AcidStatuses getCommand()
Returns the command intsruction to ad or delte an aircraft from the AtVoice lookup table. Intialize will delete all aircraft from the lookup table.

Returns:
One of the following characters 1. A - Activate 2. D - Deactivate 3. I - Initialize

getCommandData

public java.lang.String getCommandData()
Returns the Acid of the flight to add or delete


toString

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

Overrides:
toString in class AtVoiceMessage