gov.nasa.gsfc.drl.rtstps.core.output.hdf5
Class RDROutput

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

public class RDROutput
extends RtStpsNode
implements PacketReceiver, java.lang.Cloneable


Field Summary
static java.lang.String CLASSNAME
          This is a class name for this RT-STPS node type.
private static int openCount
           
private  RDRBuilderNPP rdrBuilder
           
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
linkName, statusItemList, typeName
 
Constructor Summary
RDROutput()
          Constructor.
 
Method Summary
 java.lang.Object clone()
           
 void finishSetup(Configuration configuration)
          Finish the setup.
 void flush()
          Closes all the resources with the RDR files
 void load(org.w3c.dom.Element element, Configuration configuration)
          Set up this stps node with a configuration.
 void putPacket(Packet packet)
          Write a packet to the output RDR file.
 void putPackets(Packet[] packets)
          Write an array of packet to the output.
 
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.RtStpsNode
clear, 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.ccsds.PacketReceiver
getLinkName
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
This is a class name for this RT-STPS node type. It is not the link name, which is the name of one particular object. This is the name of the element in the config file.

See Also:
Constant Field Values

rdrBuilder

private RDRBuilderNPP rdrBuilder

openCount

private static int openCount
Constructor Detail

RDROutput

public RDROutput()
Constructor.

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. In this case it does nothing, all set up is done in the load.

Specified by:
finishSetup in class RtStpsNode
Throws:
RtStpsException

putPackets

public void putPackets(Packet[] packets)
                throws RtStpsException
Write an array of packet to the output. This just calls putPacket for each Packet in the array.

Specified by:
putPackets in interface PacketReceiver
Throws:
RtStpsException

putPacket

public void putPacket(Packet packet)
               throws RtStpsException
Write a packet to the output RDR file.

Specified by:
putPacket in interface PacketReceiver
Throws:
RtStpsException

flush

public void flush()
           throws RtStpsException
Closes all the resources with the RDR files

Specified by:
flush in interface PacketReceiver
Specified by:
flush in interface Receiver
Throws:
RtStpsException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class RtStpsNode
Throws:
java.lang.CloneNotSupportedException