gov.nasa.gsfc.drl.rtstps.core.ccsds.path
Class PacketStatus

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.ccsds.path.PacketStatus

public final class PacketStatus
extends java.lang.Object

This class contains packet status.


Field Summary
 long discardedPackets
          Number of discarded packets.
 long invalidLengthPackets
          Number of packets with invalid lengths.
 long missingPackets
          Number of missing packets.
 long packetsOut
          Number of packets passed through this pipeline.
 long packetsWithFill
          Number of short packets, which are packets that have appended fill data.
 long sequenceErrors
          Number of packet sequence errors discovered in this pipeline.
 
Constructor Summary
PacketStatus()
           
 
Method Summary
 void clear()
          Set all counters to zero.
(package private)  void count(Packet packet)
          Count packet status.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

packetsOut

public long packetsOut
Number of packets passed through this pipeline.


discardedPackets

public long discardedPackets
Number of discarded packets. Some packets that might be discarded could be packets with fill or packets with invalid lengths.


packetsWithFill

public long packetsWithFill
Number of short packets, which are packets that have appended fill data.


invalidLengthPackets

public long invalidLengthPackets
Number of packets with invalid lengths.


sequenceErrors

public long sequenceErrors
Number of packet sequence errors discovered in this pipeline.


missingPackets

public long missingPackets
Number of missing packets. This is calculated from the packet sequence errors.

Constructor Detail

PacketStatus

public PacketStatus()
Method Detail

clear

public void clear()
Set all counters to zero.


count

void count(Packet packet)
Count packet status.


toString

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