gov.nasa.gsfc.drl.rtstps.core.xstps.pds
Class Appid

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.xstps.pds.Appid

final class Appid
extends java.lang.Object

This class accumulates information about one application id.


Field Summary
private  boolean discardBadLengthPackets
           
private  FillList fillList
           
private  long firstByte
           
private  PacketKernel firstPacket
           
private  GapList gapList
           
private  boolean hasCucSecondaryHeaderTime
           
private  int id
           
private  boolean isQuicklookTypeEDS
           
private  PacketKernel lastPacket
           
private  int packets
           
private  int reedSolomonCorrectedPackets
           
private  int spid
           
private  int timeOffset
           
private  long totalBytes
           
private  int vcid1
           
private  int vcid2
           
private  int vcids
           
private  WrongLengthList wrongLengthList
           
 
Constructor Summary
Appid(org.w3c.dom.Element element, int defaultSpid, boolean discardBadLengthPackets, boolean isQuicklookEDS)
          Create an application id object.
 
Method Summary
(package private)  int getId()
          Get the application id.
(package private)  int getReedSolomonCorrectedPacketCount()
          Get the number of packets from Reed Solomon-corrected frames.
(package private)  int getSpacecraftId()
          Get the spacecraft id.
(package private)  long getTotalFillBytes()
          Get the total number of fill bytes that are appended to short packets.
(package private)  int getTotalGaps()
          Get the number of gaps in sequence count.
(package private)  int getTotalPacketsWithBadLength()
          Get the number of packets that had an incorrect length.
(package private)  void printCS(java.io.DataOutput crecord)
          Write information to the construction record file.
(package private)  boolean putPacket(Packet packet, PacketKernel packetKernel, long offset)
          Store a packet in this application ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstPacket

private PacketKernel firstPacket

lastPacket

private PacketKernel lastPacket

gapList

private GapList gapList

fillList

private FillList fillList

wrongLengthList

private WrongLengthList wrongLengthList

reedSolomonCorrectedPackets

private int reedSolomonCorrectedPackets

firstByte

private long firstByte

totalBytes

private long totalBytes

packets

private int packets

vcids

private int vcids

vcid1

private int vcid1

vcid2

private int vcid2

spid

private int spid

id

private int id

timeOffset

private int timeOffset

discardBadLengthPackets

private boolean discardBadLengthPackets

isQuicklookTypeEDS

private boolean isQuicklookTypeEDS

hasCucSecondaryHeaderTime

private boolean hasCucSecondaryHeaderTime
Constructor Detail

Appid

Appid(org.w3c.dom.Element element,
      int defaultSpid,
      boolean discardBadLengthPackets,
      boolean isQuicklookEDS)
throws RtStpsException
Create an application id object.

Parameters:
element - a related XML element
defaultSpid - a default spacecraft id, which may be overridden by a field in the element.
discardBadLengthPackets - true=discard bad length packets
isQuicklookEDS - true=this is a quicklook EDS
Throws:
RtStpsException
Method Detail

getTotalFillBytes

final long getTotalFillBytes()
Get the total number of fill bytes that are appended to short packets.


getTotalPacketsWithBadLength

final int getTotalPacketsWithBadLength()
Get the number of packets that had an incorrect length. (deleted or not)


getTotalGaps

final int getTotalGaps()
Get the number of gaps in sequence count.


getReedSolomonCorrectedPacketCount

final int getReedSolomonCorrectedPacketCount()
Get the number of packets from Reed Solomon-corrected frames.


getSpacecraftId

final int getSpacecraftId()
Get the spacecraft id.


getId

final int getId()
Get the application id.


putPacket

boolean putPacket(Packet packet,
                  PacketKernel packetKernel,
                  long offset)
Store a packet in this application ID.

Returns:
false if the packet should be discarded

printCS

void printCS(java.io.DataOutput crecord)
       throws java.io.IOException
Write information to the construction record file.

Throws:
java.io.IOException