Class AntData

java.lang.Object
  |
  +--AntData

public class AntData
extends java.lang.Object

Storage structure for the ant data records of a file.


Constructor Summary
AntData(int len, java.lang.String imageID)
          Creates and initializes a AntData object.
 
Method Summary
 void display()
          Used for testing only.
 java.lang.String getAntID()
          Gets the ant ID
 HeaderData getHeaderData()
          Gets the HeaderData object
 int getNewRangeGate(int num)
          Gets the records new range gate
 float getRollCmd(int num)
          Gets the records roll command
 int getTimeTag(int num)
          Gets the records time tag
 float getYawCmd(int num)
          Gets the records yaw command
 void setHeaderValues(java.lang.String id, int c, int pass, int file, int len, int ver, int cnt, java.lang.String date, java.lang.String time)
          Sets the records HeaderData, method is just a wrapper function for method in HeaderData
 void setNewRangeGate(int num, int val)
          Sets a records new range gate
 void setRollCmd(int num, float val)
          Sets a records roll command
 void setTimeTag(int num, int val)
          Sets a records time tag
 void setYawCmd(int num, float val)
          Sets a records yaw command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntData

public AntData(int len,
               java.lang.String imageID)
Creates and initializes a AntData object.
Parameters:
len - the number of ant records
imageID - the image ID
Method Detail

display

public void display()
Used for testing only. Displays the fields of some of the ant records (records 1,10, and 25) to System.out

getAntID

public java.lang.String getAntID()
Gets the ant ID
Returns:
the ant ID

getHeaderData

public HeaderData getHeaderData()
Gets the HeaderData object
Returns:
the HeaderData

getTimeTag

public int getTimeTag(int num)
Gets the records time tag
Parameters:
num - the record number
Returns:
the time tag for the record

getRollCmd

public float getRollCmd(int num)
Gets the records roll command
Parameters:
num - the record number
Returns:
the roll command for the record

getYawCmd

public float getYawCmd(int num)
Gets the records yaw command
Parameters:
num - the record number
Returns:
the yaw command for the record

getNewRangeGate

public int getNewRangeGate(int num)
Gets the records new range gate
Parameters:
num - the record number
Returns:
the new range gate for the record

setHeaderValues

public void setHeaderValues(java.lang.String id,
                            int c,
                            int pass,
                            int file,
                            int len,
                            int ver,
                            int cnt,
                            java.lang.String date,
                            java.lang.String time)
Sets the records HeaderData, method is just a wrapper function for method in HeaderData
Parameters:
id - the header id
c - a constant value
pass - the image pass number
file - the file ID
len - the length of a single record
ver - the structure version of the file type
cnt - the number of records in the file
date - the tape date
time - the tape time

setTimeTag

public void setTimeTag(int num,
                       int val)
Sets a records time tag
Parameters:
val - the time tag value
num - the record number

setRollCmd

public void setRollCmd(int num,
                       float val)
Sets a records roll command
Parameters:
val - the roll command value
num - the record number

setYawCmd

public void setYawCmd(int num,
                      float val)
Sets a records yaw command
Parameters:
val - the yaw command value
num - the record number

setNewRangeGate

public void setNewRangeGate(int num,
                            int val)
Sets a records new range gate
Parameters:
val - the new range gate value
num - the record number