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

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
      extended by gov.nasa.gsfc.drl.rtstps.core.ccsds.AbstractService
          extended by gov.nasa.gsfc.drl.rtstps.core.ccsds.VcduService
All Implemented Interfaces:
FrameReceiver, Receiver, Sender, java.lang.Cloneable

public final class VcduService
extends AbstractService
implements Sender, FrameReceiver, java.lang.Cloneable

This class does the CCSDS VCDU service. It makes VCDUs from CCSDS version 2 frames.


Nested Class Summary
(package private)  class VcduService.Vcdu
          This class is a CCSDS VCDU.
 
Field Summary
static java.lang.String CLASSNAME
          This is a class name for this STPS node type, which is also the element name.
private  UnitReceiver output
           
private  UnitOutputTool uotool
           
private  VcduService.Vcdu vcdu
           
private  LongStatusItem vcdus
           
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.ccsds.AbstractService
cadu, sequencer, serviceElement
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
linkName, statusItemList, typeName
 
Constructor Summary
VcduService()
          Create a VcduService object.
 
Method Summary
 void addReceiver(Receiver receiver)
          Add a Receiver to this sender's list of receivers.
 void finishSetup(Configuration configuration)
          Finish the setup.
 void flush()
          Flush the pipeline.
 void load(org.w3c.dom.Element element, Configuration configuration)
          Set up this stps node with a configuration.
 void putFrame(Frame frame)
          Give a frame to this FrameReceiver.
 
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.ccsds.AbstractService
putFrames
 
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
getLinkName, putFrames
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
This is a class name for this 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

vcdu

private VcduService.Vcdu vcdu

output

private UnitReceiver output

uotool

private UnitOutputTool uotool

vcdus

private LongStatusItem vcdus
Constructor Detail

VcduService

public VcduService()
Create a VcduService object.

Method Detail

load

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

Overrides:
load in class AbstractService
Throws:
RtStpsException

addReceiver

public void addReceiver(Receiver receiver)
                 throws RtStpsException
Add a Receiver to this sender's list of receivers.

Specified by:
addReceiver in interface Sender
Parameters:
receiver - If the receiver is not of the expected type, then the method throws an StpsException.
Throws:
RtStpsException

finishSetup

public void finishSetup(Configuration configuration)
                 throws RtStpsException
Finish the setup. When this method is called, you may assume all nodes have been created and exist by name in the map, and all standard links have been resolved. This is a last chance to prepare for data flow.

Overrides:
finishSetup in class AbstractService
Throws:
RtStpsException

putFrame

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

Specified by:
putFrame in interface FrameReceiver
Throws:
RtStpsException

flush

public void flush()
           throws RtStpsException
Flush the pipeline.

Specified by:
flush in interface FrameReceiver
Specified by:
flush in interface Receiver
Throws:
RtStpsException