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

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

public abstract class AbstractService
extends RtStpsNode
implements FrameReceiver, java.lang.Cloneable

This is the base class for CCSDS service nodes. It receives CADUs (frames). It provides a CADU and CADU-level sequence checking as well as establishing a status item list. It does not assume any sort of output.


Field Summary
protected  Cadu cadu
           
protected  CaduSequencer sequencer
           
protected  org.w3c.dom.Element serviceElement
           
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
linkName, statusItemList, typeName
 
Constructor Summary
protected AbstractService(java.lang.String elementName)
          Construct a service object.
 
Method Summary
 void finishSetup(Configuration configuration)
          Finish the setup.
 void load(org.w3c.dom.Element element, Configuration configuration)
          Set up this stps node with a configuration.
 void putFrames(Frame[] frames)
          Give an array of frames to this FrameReceiver.
 
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, putFrame
 

Field Detail

cadu

protected Cadu cadu

sequencer

protected CaduSequencer sequencer

serviceElement

protected org.w3c.dom.Element serviceElement
Constructor Detail

AbstractService

protected AbstractService(java.lang.String elementName)
Construct a service object.

Method Detail

load

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

Specified by:
load in class RtStpsNode
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.

Specified by:
finishSetup in class RtStpsNode
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