gov.nasa.gsfc.drl.rtstps.core.ccsds
Class CaduSequencer

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

public class CaduSequencer
extends java.lang.Object

This class performs sequence field checking for version 2 CCSDS frames.


Field Summary
private  LongStatusItem cadus
          The total number of CADUs this service has processed.
private  int expected
           
private  LongStatusItem missingCADUs
          Number of missing frames due to frame sequence errors.
private static int SEQUENCE_MASK
           
private  LongStatusItem sequenceErrors
          Number of frame sequence errors.
private static int UNINITIALIZED
           
 
Constructor Summary
CaduSequencer(java.util.Collection<StatusItem> statusItemList)
          Create a Sequencer object.
 
Method Summary
 void check(Cadu cadu)
          Perform a sequence check on the CADU.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEQUENCE_MASK

private static final int SEQUENCE_MASK
See Also:
Constant Field Values

UNINITIALIZED

private static final int UNINITIALIZED
See Also:
Constant Field Values

expected

private int expected

sequenceErrors

private LongStatusItem sequenceErrors
Number of frame sequence errors.


missingCADUs

private LongStatusItem missingCADUs
Number of missing frames due to frame sequence errors.


cadus

private LongStatusItem cadus
The total number of CADUs this service has processed.

Constructor Detail

CaduSequencer

public CaduSequencer(java.util.Collection<StatusItem> statusItemList)
Create a Sequencer object.

Parameters:
statusItemList - A CCSDS status collector.
Method Detail

check

public void check(Cadu cadu)
Perform a sequence check on the CADU. The method marks the frame annotation if it detects a sequence error.