gov.nasa.gsfc.drl.rtstps.core
Class UnitBroadcaster

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.Broadcaster
      extended by gov.nasa.gsfc.drl.rtstps.core.UnitBroadcaster
All Implemented Interfaces:
Receiver, UnitReceiver

public final class UnitBroadcaster
extends Broadcaster
implements UnitReceiver

RtStpsNodes that send units to UnitReceivers use this class to broadcast units to more than one UnitReceiver.


Field Summary
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.Broadcaster
name, output
 
Constructor Summary
UnitBroadcaster(java.lang.String name, UnitReceiver ur1, UnitReceiver ur2)
          Create a UnitBroadcaster with an initial two target receivers.
 
Method Summary
 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.Broadcaster
addReceiver, flush, getLinkName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.UnitReceiver
flush, getLinkName
 

Constructor Detail

UnitBroadcaster

public UnitBroadcaster(java.lang.String name,
                       UnitReceiver ur1,
                       UnitReceiver ur2)
Create a UnitBroadcaster with an initial two target receivers.

Method Detail

putUnits

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

Specified by:
putUnits in interface UnitReceiver
Throws:
RtStpsException

putUnit

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

Specified by:
putUnit in interface UnitReceiver
Throws:
RtStpsException