gov.nasa.gsfc.drl.rtstps.core.xstps
Class TerraDecoder

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
      extended by gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode
          extended by gov.nasa.gsfc.drl.rtstps.core.xstps.TerraDecoder
All Implemented Interfaces:
FrameReceiver, Receiver, Sender, java.lang.Cloneable

public final class TerraDecoder
extends FrameSenderNode
implements FrameReceiver, Sender, java.lang.Cloneable

This class is a special Terra RT-STPS node. It removes Terra's internal PN encoding, which is inside a CADU, starting with the first byte beyond the VCDU header and ending with the byte just before the Reed Solomon parity.


Field Summary
static java.lang.String CLASSNAME
          This is a class name for this RT-STPS node type, which is also the element name.
private static int FIRST_BYTE
          These fields are the start and end byte offsets of the PN-encoded region with the EOS Terra frame.
private static int LAST_BYTE
           
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode
output
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
linkName, statusItemList, typeName
 
Constructor Summary
TerraDecoder()
          Create a Terra decoder node.
 
Method Summary
 void load(org.w3c.dom.Element element, Configuration configuration)
          Set up this RT-STPS node with a configuration.
 void putFrame(Frame frame)
          Give a frame to this FrameReceiver.
 void putFrames(Frame[] frames)
          Give an array of frames to this FrameReceiver.
 
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode
addReceiver, finishSetup, flush, setOutputIsRequired
 
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
clear, clone, getElementName, getLinkName, getStatusItems, setLinkName, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.FrameReceiver
flush, getLinkName
 
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.Sender
addReceiver
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
This is a class name for this RT-STPS node type, which is also the element name. It is not necessarily the link name, which is the name of one particular object.

See Also:
Constant Field Values

FIRST_BYTE

private static final int FIRST_BYTE
These fields are the start and end byte offsets of the PN-encoded region with the EOS Terra frame.

See Also:
Constant Field Values

LAST_BYTE

private static final int LAST_BYTE
See Also:
Constant Field Values
Constructor Detail

TerraDecoder

public TerraDecoder()
Create a Terra decoder node.

Method Detail

load

public void load(org.w3c.dom.Element element,
                 Configuration configuration)
          throws RtStpsException
Set up this RT-STPS node with a configuration.

Specified by:
load in class FrameSenderNode
Throws:
RtStpsException

putFrame

public void putFrame(Frame frame)
              throws RtStpsException
Give a frame to this FrameReceiver.

Specified by:
putFrame in interface FrameReceiver
Throws:
RtStpsException

putFrames

public void putFrames(Frame[] frames)
               throws RtStpsException
Give an array of frames to this FrameReceiver.

Specified by:
putFrames in interface FrameReceiver
Throws:
RtStpsException