|
|||||||||
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.ccsds.path.PacketPipeline
public class PacketPipeline
This class handles a packet stream usually for one application id. Its primary functions are to count status, check packet lengths, and check the sequence counter.
Nested Class Summary | |
---|---|
(package private) class |
PacketPipeline.Sequencer
This class maintains the packet sequence count. |
static class |
PacketPipeline.Setup
|
Field Summary | |
---|---|
private LongStatusItem |
badLengthSample
|
static java.lang.String |
CLASSNAME
This is a class name for this STPS node type, which is also the element name. |
private LongStatusItem |
discardedPackets
|
private LongStatusItem |
invalidLengthPackets
|
private LongStatusItem |
missingPackets
|
private PacketReceiver |
output
|
private LongStatusItem |
packetsOut
|
private LongStatusItem |
packetsWithFill
|
private PacketOutputTool |
potool
|
private static int |
SEQUENCE_MASK
|
private LongStatusItem |
sequenceErrors
|
private PacketPipeline.Sequencer |
sequencer
|
private PacketPipeline.Setup |
setup
|
private static int |
UNINITIALIZED
|
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode |
---|
linkName, statusItemList, typeName |
Constructor Summary | |
---|---|
PacketPipeline()
Create a PacketPipeline object. |
Method Summary | |
---|---|
void |
addReceiver(Receiver r)
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 |
putPacket(Packet packet)
Give a packet to this PacketReceiver. |
void |
putPackets(Packet[] packets)
Give an array of packets to this PacketReceiver. |
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.ccsds.PacketReceiver |
---|
getLinkName |
Field Detail |
---|
public static final java.lang.String CLASSNAME
private PacketPipeline.Setup setup
private PacketPipeline.Sequencer sequencer
private PacketReceiver output
private PacketOutputTool potool
private LongStatusItem packetsOut
private LongStatusItem discardedPackets
private LongStatusItem invalidLengthPackets
private LongStatusItem missingPackets
private LongStatusItem packetsWithFill
private LongStatusItem sequenceErrors
private LongStatusItem badLengthSample
private static final int UNINITIALIZED
private static final int SEQUENCE_MASK
Constructor Detail |
---|
public PacketPipeline()
Method Detail |
---|
public void load(org.w3c.dom.Element element, Configuration configuration) throws RtStpsException
load
in class RtStpsNode
RtStpsException
public void addReceiver(Receiver r) throws RtStpsException
addReceiver
in interface Sender
r
- If the receiver is not of the expected type,
then the method throws an StpsException.
RtStpsException
public void finishSetup(Configuration configuration) throws RtStpsException
finishSetup
in class RtStpsNode
RtStpsException
public void putPackets(Packet[] packets) throws RtStpsException
putPackets
in interface PacketReceiver
RtStpsException
public void putPacket(Packet packet) throws RtStpsException
putPacket
in interface PacketReceiver
RtStpsException
public void flush() throws RtStpsException
flush
in interface PacketReceiver
flush
in interface Receiver
RtStpsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |