gov.nasa.gsfc.drl.rtstps.core
Interface UnitReceiver

All Superinterfaces:
Receiver
All Known Implementing Classes:
AbstractUnitChannel, NullChannel, UnitBroadcaster, UnitChannel, UnitChannelA, UnitChannelB

public interface UnitReceiver
extends Receiver

Any class that implements UnitReceiver accepts units. This interface is for receivers other than packet and frame receivers. It is used primarily to handle CCSDS services besides the path packet service.


Method Summary
 void flush()
          Flush the data pipeline.
 java.lang.String getLinkName()
          Get this receiver's name (for error messages).
 void putUnit(Unit unit)
          Give a unit to this UnitReceiver.
 void putUnits(Unit[] units)
          Give an array of units to this UnitReceiver.
 

Method Detail

putUnit

void putUnit(Unit unit)
             throws RtStpsException
Give a unit to this UnitReceiver.

Throws:
RtStpsException

putUnits

void putUnits(Unit[] units)
              throws RtStpsException
Give an array of units to this UnitReceiver.

Throws:
RtStpsException

flush

void flush()
           throws RtStpsException
Flush the data pipeline.

Specified by:
flush in interface Receiver
Throws:
RtStpsException

getLinkName

java.lang.String getLinkName()
Get this receiver's name (for error messages).

Specified by:
getLinkName in interface Receiver