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

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
      extended by gov.nasa.gsfc.drl.rtstps.core.output.NullChannel
All Implemented Interfaces:
PacketReceiver, FrameReceiver, Receiver, UnitReceiver, java.lang.Cloneable

public final class NullChannel
extends RtStpsNode
implements java.lang.Cloneable, FrameReceiver, UnitReceiver, PacketReceiver

This is a null channel. It discards everything.


Field Summary
static java.lang.String CLASSNAME
           
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
linkName, statusItemList, typeName
 
Constructor Summary
NullChannel()
           
 
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.
 void putFrame(Frame frame)
          Give a frame to this FrameReceiver.
 void putFrames(Frame[] frames)
          Give an array of frames to this FrameReceiver.
 void putPacket(Packet packet)
          Give a packet to this PacketReceiver.
 void putPackets(Packet[] packets)
          Give an array of packets to this PacketReceiver.
 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.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.FrameReceiver
getLinkName
 
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.UnitReceiver
getLinkName
 
Methods inherited from interface gov.nasa.gsfc.drl.rtstps.core.ccsds.PacketReceiver
getLinkName
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values
Constructor Detail

NullChannel

public NullChannel()
Method Detail

load

public void load(org.w3c.dom.Element element,
                 Configuration configuration)
          throws RtStpsException
Set up this stps node with a configuration.

Specified by:
load in class RtStpsNode
Throws:
RtStpsException

finishSetup

public void finishSetup(Configuration configuration)
                 throws RtStpsException
Finish the setup. When this method is called, you may assume all nodes have been created and exist by name in the map, and all standard links have been resolved. This is a last chance to prepare for data flow.

Specified by:
finishSetup in class RtStpsNode
Throws:
RtStpsException

flush

public void flush()
           throws RtStpsException
Flush the output channel.

Specified by:
flush in interface PacketReceiver
Specified by:
flush in interface FrameReceiver
Specified by:
flush in interface Receiver
Specified by:
flush in interface UnitReceiver
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

putFrame

public void putFrame(Frame frame)
              throws RtStpsException
Give a frame to this FrameReceiver.

Specified by:
putFrame in interface FrameReceiver
Throws:
RtStpsException

putUnit

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

Specified by:
putUnit in interface UnitReceiver
Throws:
RtStpsException

putUnits

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

Specified by:
putUnits in interface UnitReceiver
Throws:
RtStpsException

putPackets

public void putPackets(Packet[] packets)
                throws RtStpsException
Give an array of packets to this PacketReceiver.

Specified by:
putPackets in interface PacketReceiver
Throws:
RtStpsException

putPacket

public void putPacket(Packet packet)
               throws RtStpsException
Give a packet to this PacketReceiver.

Specified by:
putPacket in interface PacketReceiver
Throws:
RtStpsException