gov.nasa.gsfc.drl.rtstps.core.output
Class AbstractUnitChannel
java.lang.Object
gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
gov.nasa.gsfc.drl.rtstps.core.output.AbstractChannel
gov.nasa.gsfc.drl.rtstps.core.output.AbstractUnitChannel
- All Implemented Interfaces:
- FrameReceiver, Receiver, UnitReceiver, java.lang.Cloneable
- Direct Known Subclasses:
- UnitChannel, UnitChannelA, UnitChannelB
public abstract class AbstractUnitChannel
- extends AbstractChannel
- implements UnitReceiver, FrameReceiver, java.lang.Cloneable
This generic output channel writes units to the output stream. It is
also a FrameReceiver, so it can writes frames to an output stream too.
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.output.AbstractChannel |
AFTER, annotationOption, BEFORE, CONSECUTIVE_PERMITTED_ERRORS, consecutiveErrors, count, device, dicardedCount, FRAME, GENERIC, NO_ANNOTATION, output, outputErrorCount, PACKET, unitType |
Method Summary |
void |
putFrame(Frame frame)
Give a frame to this FrameReceiver. |
void |
putFrames(Frame[] frames)
Give an array of frames to this FrameReceiver. |
abstract void |
putUnit(Unit unit)
Give a unit to this UnitReceiver. |
void |
putUnits(Unit[] units)
Give an array of units to this UnitReceiver. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractUnitChannel
protected AbstractUnitChannel(java.lang.String elementName)
- A constructor.
putUnit
public abstract void putUnit(Unit unit)
throws RtStpsException
- Give a unit to this UnitReceiver.
- Specified by:
putUnit
in interface UnitReceiver
- Throws:
RtStpsException
putUnits
public final void putUnits(Unit[] units)
throws RtStpsException
- Give an array of units to this UnitReceiver.
- Specified by:
putUnits
in interface UnitReceiver
- Throws:
RtStpsException
putFrame
public void putFrame(Frame frame)
throws RtStpsException
- Give a frame to this FrameReceiver.
- Specified by:
putFrame
in interface FrameReceiver
- 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