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

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

 class GapList
extends java.lang.Object

This class checks for packet sequence gaps. It collects gap information.


Nested Class Summary
(package private)  class GapList.Item
          This class contains information about one gap.
 
Field Summary
private  java.util.LinkedList<GapList.Item> gaplist
           
private  Sequencer sequencer
           
 
Constructor Summary
GapList(int stepsize)
          Create a gap list.
 
Method Summary
(package private)  boolean check(Packet packet, PacketKernel current, PacketKernel previous, long datasetOffset)
          Check a packet for a gap between it and the previous packet.
(package private)  int getGapCount()
          Get the number of detected gaps.
(package private)  void printCS(java.io.DataOutput out)
          Write gap information to the construction record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sequencer

private Sequencer sequencer

gaplist

private java.util.LinkedList<GapList.Item> gaplist
Constructor Detail

GapList

GapList(int stepsize)
Create a gap list.

Parameters:
stepsize - A non-zero sequence step size.
Method Detail

getGapCount

final int getGapCount()
Get the number of detected gaps.


check

boolean check(Packet packet,
              PacketKernel current,
              PacketKernel previous,
              long datasetOffset)
Check a packet for a gap between it and the previous packet.

Returns:
true if a gap was detected

printCS

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

Throws:
java.io.IOException