|
|||||||||
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.output.AbstractChannel
public abstract class AbstractChannel
This abstract class is the base class for some output channels. An output channel is concerned with the output format and has little interest in the actual output device. This class can construct the proper device class as part of the load method.
Field Summary | |
---|---|
static java.lang.String |
AFTER
Annotation option. |
protected java.lang.String |
annotationOption
This field determines if annotation is written with each unit and where it is written -- before or after the unit data. |
static java.lang.String |
BEFORE
Annotation option. |
static int |
CONSECUTIVE_PERMITTED_ERRORS
If a channel encounters this number of consecutive write errors, it stops writing to the output device and begins descarding data. |
protected int |
consecutiveErrors
The current number of consecutive write errors. |
protected LongStatusItem |
count
A count of the number of units that have passed through this channel. |
protected AbstractOutputDevice |
device
This is a device to which the channel writes data. |
protected LongStatusItem |
dicardedCount
A count of units that the channel discarded because the consecutive error threshold was triggered. |
static java.lang.String |
FRAME
Unit type. |
static java.lang.String |
GENERIC
Unit type. |
static java.lang.String |
NO_ANNOTATION
Annotation option. |
protected java.io.DataOutputStream |
output
|
protected LongStatusItem |
outputErrorCount
A count of units that could not be written for any reason. |
static java.lang.String |
PACKET
Unit type. |
protected java.lang.String |
unitType
This field defines the type of unit (packet, frame, unit, etc) that will be sent to this channel. |
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode |
---|
linkName, statusItemList, typeName |
Constructor Summary | |
---|---|
protected |
AbstractChannel(java.lang.String elementName)
A constructor. |
Method Summary | |
---|---|
void |
finishSetup(Configuration configuration)
Finish the setup. |
void |
flush()
Flush the output channel. |
void |
load(org.w3c.dom.Element element,
Configuration configuration)
Set up this stps node with a configuration. |
protected void |
writeFrameAnnotation(Unit unit)
Format this unit's frame annotation into two 32-integers, and write them to the output stream. |
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 |
Field Detail |
---|
public static int CONSECUTIVE_PERMITTED_ERRORS
public static final java.lang.String FRAME
public static final java.lang.String PACKET
public static final java.lang.String GENERIC
protected java.lang.String unitType
public static final java.lang.String BEFORE
public static final java.lang.String AFTER
public static final java.lang.String NO_ANNOTATION
protected java.lang.String annotationOption
protected LongStatusItem count
protected LongStatusItem outputErrorCount
protected LongStatusItem dicardedCount
protected int consecutiveErrors
protected AbstractOutputDevice device
protected java.io.DataOutputStream output
Constructor Detail |
---|
protected AbstractChannel(java.lang.String elementName)
Method Detail |
---|
public void load(org.w3c.dom.Element element, Configuration configuration) throws RtStpsException
load
in class RtStpsNode
RtStpsException
public void finishSetup(Configuration configuration) throws RtStpsException
finishSetup
in class RtStpsNode
RtStpsException
public void flush() throws RtStpsException
RtStpsException
protected void writeFrameAnnotation(Unit unit) throws java.io.IOException
[0] bit 25 1=Frame contains an idle/fill VCDU (CCSDS state) [0] bit 24 1=Frame has bad first header pointer (CCSDS error) [0] bit 23 1=Path Service had problem composing a packet from this frame [0] bit 22 1=sequence error between this and preceding frame [0] bit 21 1=frame is Reed Solomon uncorrectable [0] bit 20 1=frame is Reed Solomon corrected [0] bit 19 1=frame has CRC error [0] bit 18 1=slipped frame [0] bit 17 1=inverted frame (polarity was corrected) [0] bit 16 1=lock frame [0] bits 0-15 day of year (1-366) [1] bits 0-31 milliseconds of day
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |