gov.nasa.gsfc.drl.rtstps.core.ccsds
Class AbstractService
java.lang.Object
gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
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.
Constructor Summary |
protected |
AbstractService(java.lang.String elementName)
Construct a service object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
cadu
protected Cadu cadu
sequencer
protected CaduSequencer sequencer
serviceElement
protected org.w3c.dom.Element serviceElement
AbstractService
protected AbstractService(java.lang.String elementName)
- Construct a service object.
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