gov.nasa.gsfc.drl.rtstps.core.ccsds
Class Packet.Annotation

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.ccsds.Packet.Annotation
Enclosing class:
Packet

public final class Packet.Annotation
extends java.lang.Object

Packet annotation. It contains quality information for a single packet.


Field Summary
 int goodByteCount
          The number of "good" bytes in this packet, which is the packet length for most packets.
 boolean hasSequenceError
          If true, there was a packet sequence error between this one and the preceding packet.
 boolean isInvalidLength
          If true, the packet has an invalid length.
 boolean isPacketWithFill
          If true, the packet could not be constructed in its entirety, so the Path Service appended fill bytes to it to fill it out to its advertised length.
 
Constructor Summary
Packet.Annotation()
           
 
Method Summary
 void reset()
          Reset this annotation so that it can be used for a different packet.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isInvalidLength

public boolean isInvalidLength
If true, the packet has an invalid length. An operator will define valid minimum and maximum lengths for each packet stream.


hasSequenceError

public boolean hasSequenceError
If true, there was a packet sequence error between this one and the preceding packet.


isPacketWithFill

public boolean isPacketWithFill
If true, the packet could not be constructed in its entirety, so the Path Service appended fill bytes to it to fill it out to its advertised length.


goodByteCount

public int goodByteCount
The number of "good" bytes in this packet, which is the packet length for most packets. If isPacketWithFill is true, then this field is the index of the first fill byte.

Constructor Detail

Packet.Annotation

public Packet.Annotation()
Method Detail

reset

public void reset()
Reset this annotation so that it can be used for a different packet.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object