gov.nasa.gsfc.drl.rtstps.core.output.hdf5
Class RDRAppIdList

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RDRAppIdList

public class RDRAppIdList
extends java.lang.Object

Create a list of RDRAppIdItems ... the list can be created so that it can then be written to the StaticHeader, or if the list can be created from a memory buffer likely read from the HDF.


Field Summary
private  java.util.LinkedList<RDRAppIdItem> rdrAppIdList
           
private static int RDRItemSize
           
private static long serialVersionUID
           
 
Constructor Summary
RDRAppIdList(int offset, byte[] data, int end)
          This constructs the list from memory which has likely just been read from the HDF and is in the StaticHeader.
RDRAppIdList(PacketTrackerList packetTracker)
          Constructor for building the AppIdList and eventually writing the contents to the HDF file.
 
Method Summary
 java.util.List<RDRAppIdItem> getAppIdItemList()
          Return the appIdItem list
 int getSize()
          Get the HDF dataset size
 int write(byte[] data, int offset)
          Write the list to the provided data array at the given offset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rdrAppIdList

private java.util.LinkedList<RDRAppIdItem> rdrAppIdList

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

RDRItemSize

private static final int RDRItemSize
See Also:
Constant Field Values
Constructor Detail

RDRAppIdList

public RDRAppIdList(PacketTrackerList packetTracker)
Constructor for building the AppIdList and eventually writing the contents to the HDF file. Pass in the already constructed packetTracker info to do so. This is is the "write" side of class. Note, the values of each supplied appID item must ultimate be copied to a buffer using the RDRAppIdItem's write method.

Parameters:
packetTracker - the list of packet trackers

RDRAppIdList

public RDRAppIdList(int offset,
                    byte[] data,
                    int end)
This constructs the list from memory which has likely just been read from the HDF and is in the StaticHeader. This is the "read" side of the class.

Parameters:
offset - offset into the data buffer
data - byte array of data
end - the end offset containing the StaticHeader
Method Detail

write

public int write(byte[] data,
                 int offset)
Write the list to the provided data array at the given offset

Parameters:
data - a byte array target
offset - the offset into the buffer
Returns:
the new offset or end

getAppIdItemList

public java.util.List<RDRAppIdItem> getAppIdItemList()
Return the appIdItem list

Returns:
the List of RDRAppIdItems

getSize

public int getSize()
Get the HDF dataset size

Returns:
size in bytes