gov.nasa.gsfc.drl.rtstps.core.output
Class AbstractUnitChannel

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
      extended by gov.nasa.gsfc.drl.rtstps.core.output.AbstractChannel
          extended by 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.


Field Summary
 
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
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
linkName, statusItemList, typeName
 
Constructor Summary
protected AbstractUnitChannel(java.lang.String elementName)
          A constructor.
 
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 gov.nasa.gsfc.drl.rtstps.core.output.AbstractChannel
finishSetup, flush, load, writeFrameAnnotation
 
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.UnitReceiver
flush, getLinkName
 
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.FrameReceiver
flush, getLinkName
 

Constructor Detail

AbstractUnitChannel

protected AbstractUnitChannel(java.lang.String elementName)
A constructor.

Method Detail

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