|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.RtStpsNode
gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode
gov.nasa.gsfc.drl.rtstps.core.ccsds.CaduService
public final class CaduService
This node receives all frames that require CCSDS processing. It sorts frames and redirects them to service processors based on the spacecraft and virtual channel numbers.
Nested Class Summary | |
---|---|
(package private) class |
CaduService.VcKey
This class holds spacecraft and virtual channel ids so they can be stored as a key in a map. |
Field Summary | |
---|---|
private Cadu |
cadu
|
static java.lang.String |
CLASSNAME
This is a class name for this STPS node type, which is also the element name. |
private FrameReceiver |
deadletters
|
private LongStatusItem |
fillFrames
|
private CaduService.VcKey |
lookup
|
private LongStatusItem |
outputFrames
|
private java.util.HashMap<CaduService.VcKey,FrameReceiver> |
outputMap
|
private org.w3c.dom.NodeList |
svlinks
|
private LongStatusItem |
unrouteableCadus
|
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 | |
---|---|
CaduService()
Create a CaduService object. |
Method Summary | |
---|---|
void |
addFrameReceiver(int spid,
int vcid,
FrameReceiver fr)
Add a FrameReceiver to the outputMap list. |
void |
finishSetup(Configuration configuration)
Finish the configuration. |
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 CaduService. |
void |
putFrames(Frame[] frames)
Give an array of frames to CaduService. |
void |
setDeadletterPath(FrameReceiver fr)
CaduService sends frames with no frame receiver with a matching spacecraft and virtual channel id to this frame receiver. |
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.FrameSenderNode |
---|
addReceiver, 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 |
---|
getLinkName |
Field Detail |
---|
public static final java.lang.String CLASSNAME
private java.util.HashMap<CaduService.VcKey,FrameReceiver> outputMap
private FrameReceiver deadletters
private CaduService.VcKey lookup
private Cadu cadu
private org.w3c.dom.NodeList svlinks
private LongStatusItem unrouteableCadus
private LongStatusItem fillFrames
private LongStatusItem outputFrames
Constructor Detail |
---|
public CaduService()
Method Detail |
---|
public void load(org.w3c.dom.Element element, Configuration configuration) throws RtStpsException
load
in class FrameSenderNode
RtStpsException
public void finishSetup(Configuration configuration) throws RtStpsException
finishSetup
in class FrameSenderNode
RtStpsException
public void addFrameReceiver(int spid, int vcid, FrameReceiver fr)
spid
- A spacecraft id.vcid
- A virtual channel id.fr
- The frame receiver.public void setDeadletterPath(FrameReceiver fr)
public void flush() throws RtStpsException
flush
in interface FrameReceiver
flush
in interface Receiver
flush
in class FrameSenderNode
RtStpsException
public void putFrames(Frame[] frames) throws RtStpsException
putFrames
in interface FrameReceiver
RtStpsException
public void putFrame(Frame frame) throws RtStpsException
putFrame
in interface FrameReceiver
RtStpsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |