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

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RDRFactory

public final class RDRFactory
extends java.lang.Object

A factory class & method for creating specific RDR based on various input parameters. This class is used while processing packets in real time from an input stream.


Field Summary
private static java.util.HashMap<RDRName,RDR> rdrTable
           
 
Constructor Summary
RDRFactory()
           
 
Method Summary
static void add(RDRName rdrName, RDR rdr)
          For any RDR object created, it may be stored here through this method, duplicates
static RDR createRDR(RDRName anRdrName, AllData allData, DataProducts dataProducts, FixedDomainDescription drl)
          Create the RDR of interest using the supplied argumets.
static RDR createRDR(Stats stats, RDRName anRdrName, AllData allData, DataProducts dataProducts, FixedDomainDescription drl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rdrTable

private static java.util.HashMap<RDRName,RDR> rdrTable
Constructor Detail

RDRFactory

public RDRFactory()
Method Detail

add

public static void add(RDRName rdrName,
                       RDR rdr)
For any RDR object created, it may be stored here through this method, duplicates

Parameters:
rdrName - RDRName of interest
rdr - RDR object of interest

createRDR

public static RDR createRDR(RDRName anRdrName,
                            AllData allData,
                            DataProducts dataProducts,
                            FixedDomainDescription drl)
                     throws RtStpsException
Create the RDR of interest using the supplied argumets. If no RDR match is found, a default or basic RDR is created using this class BasicRDR

Parameters:
anRdrName - the RDRName
allData - the All_Data object
dataProducts - the DataProducts object
drl - the DRL domain
Returns:
a specific RDR
Throws:
RtStpsException - wraps any HDF exceptions

createRDR

public static RDR createRDR(Stats stats,
                            RDRName anRdrName,
                            AllData allData,
                            DataProducts dataProducts,
                            FixedDomainDescription drl)
                     throws RtStpsException
Throws:
RtStpsException