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

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

Deprecated.

@Deprecated
public class SpacecraftDiaryRDR
extends RDR

Implements a special case of RDR for the SpacecraftDiary. All attitude and ephemeris packets are accumulated until the all other sensor data RDRs have been processed. Then the packets held in this class are used to build the Spacecraft Diary.


Field Summary
private  AllData allData
          Deprecated.  
private  DataProducts dataProds
          Deprecated.  
private  java.util.List<Packet> packetList
          Deprecated.  
private  java.util.LinkedList<RawApplicationPackets> raps
          Deprecated.  
private  RDRAll rdrAll
          Deprecated.  
private  RDRName rdrName
          Deprecated.  
private  RDRProduct rdrProduct
          Deprecated.  
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RDR
DocumentName
 
Constructor Summary
SpacecraftDiaryRDR(AllData allData, DataProducts dataProds, FixedDomainDescription drl)
          Deprecated. Construct a new SpacecraftDiary RDR object
 
Method Summary
 void close()
          Deprecated. Not supported
 void close(java.util.Collection<RDR> collection)
          Deprecated. In the Spacecraft Diary, all the work is done here.
private  void createAggregate()
          Deprecated. Create the aggregrate for this RDR
protected  void createGranule(RawApplicationPackets rap)
          Deprecated. Not supported
protected  RawApplicationPackets createRawApplicationPackets(RDRName rdrName)
          Deprecated. This is not used by this class
private  Granule createSpacecraftDiaryGranule(RawApplicationPackets rap, int granuleNumber)
          Deprecated. Create the SpacecraftDiary granule
private  RawApplicationPackets createSpacecraftDiaryRawApplicationPackets(TimeSpanPacketList tspl, int rapNumber)
          Deprecated. Create a SpacecraftDiaryRawApplicationPackets object
private  void createSpacecraftDiaryRDR(RDR sensorRDR)
          Deprecated. Create the spacecraft diary RDR by comparing the packet times stored in this packet list with those found in ONE sensor's RDR granule entries.
 java.util.List<RawApplicationPackets> getAllRawApplicationPackets()
          Deprecated. Get all the RawApplicationPacket objects created by this routine
 RawApplicationPackets getCurrentRawApplicationPackets()
          Deprecated. Get the current RawApplicationPacket object
 ProductIdentifiers getProductId()
          Deprecated. Get the short name of the Product Identifier which is a ProductId
 RDRAll getRDRAll()
          Deprecated. Get the RDRAll object
 RDRName getRDRName()
          Deprecated. Get the RDRName
 RDRProduct getRDRProduct()
          Deprecated. Get the RDRProduct object
 void put(Packet p)
          Deprecated. Accumulate packets in the SpacecraftRDR packetlist, all of them, they are processed at the end after all the other RDRs have been created.
 
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RDR
getDepth, getGranules, getPacketPool, getRaps, getSetNum, nextSetNum, setDepth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allData

private AllData allData
Deprecated. 

dataProds

private DataProducts dataProds
Deprecated. 

rdrName

private RDRName rdrName
Deprecated. 

rdrAll

private RDRAll rdrAll
Deprecated. 

rdrProduct

private RDRProduct rdrProduct
Deprecated. 

raps

private java.util.LinkedList<RawApplicationPackets> raps
Deprecated. 

packetList

private java.util.List<Packet> packetList
Deprecated. 
Constructor Detail

SpacecraftDiaryRDR

public SpacecraftDiaryRDR(AllData allData,
                          DataProducts dataProds,
                          FixedDomainDescription drl)
                   throws RtStpsException
Deprecated. 
Construct a new SpacecraftDiary RDR object

Parameters:
allData - the AllData object
dataProds - te DataProducts object
drl - the DRL domain
Throws:
RtStpsException - wraps any HDF exceptions
Method Detail

put

public void put(Packet p)
         throws RtStpsException
Deprecated. 
Accumulate packets in the SpacecraftRDR packetlist, all of them, they are processed at the end after all the other RDRs have been created.

Overrides:
put in class RDR
Parameters:
p - an attitude and ephemeris packet
Throws:
RtStpsException - wraps any HDF or other exceptions

createRawApplicationPackets

protected RawApplicationPackets createRawApplicationPackets(RDRName rdrName)
Deprecated. 
This is not used by this class

Specified by:
createRawApplicationPackets in class RDR
Parameters:
rdrName - the RDE name
Returns:
the specific RawApplicationPackets for the sensor in the super class

getRDRName

public RDRName getRDRName()
Deprecated. 
Get the RDRName

Overrides:
getRDRName in class RDR
Returns:
the RDRName

getRDRAll

public RDRAll getRDRAll()
Deprecated. 
Get the RDRAll object

Overrides:
getRDRAll in class RDR
Returns:
the RDRAll object

getRDRProduct

public RDRProduct getRDRProduct()
Deprecated. 
Get the RDRProduct object

Overrides:
getRDRProduct in class RDR
Returns:
the RDRProduct

getAllRawApplicationPackets

public java.util.List<RawApplicationPackets> getAllRawApplicationPackets()
Deprecated. 
Get all the RawApplicationPacket objects created by this routine

Overrides:
getAllRawApplicationPackets in class RDR
Returns:
the List of RawApplicationPackets

getCurrentRawApplicationPackets

public RawApplicationPackets getCurrentRawApplicationPackets()
Deprecated. 
Get the current RawApplicationPacket object

Overrides:
getCurrentRawApplicationPackets in class RDR
Returns:
the first RawApplicationPackets

close

public void close()
Deprecated. 
Not supported

Overrides:
close in class RDR

close

public void close(java.util.Collection<RDR> collection)
           throws java.lang.NullPointerException,
                  HDF5Exception,
                  RtStpsException
Deprecated. 
In the Spacecraft Diary, all the work is done here. It is assumed this is the last RDR close to be called. The granules of the other RDRs are used to determine the time-space of each SpacecraftDiary entry, the granule and RawApplicationPacket

Parameters:
collection - The collection associated wih this RDR
Throws:
java.lang.NullPointerException
HDF5Exception
RtStpsException

createGranule

protected void createGranule(RawApplicationPackets rap)
Deprecated. 
Not supported

Overrides:
createGranule in class RDR
Parameters:
rap - the RawApplicationPackets associated with a particular sensor

createAggregate

private void createAggregate()
                      throws RtStpsException
Deprecated. 
Create the aggregrate for this RDR

Throws:
RtStpsException - any HDF exceptions are wrapped in an RtStpsException

getProductId

public ProductIdentifiers getProductId()
Deprecated. 
Get the short name of the Product Identifier which is a ProductId

Overrides:
getProductId in class RDR
Returns:
the ProductIdentifiers

createSpacecraftDiaryRDR

private void createSpacecraftDiaryRDR(RDR sensorRDR)
                               throws RtStpsException
Deprecated. 
Create the spacecraft diary RDR by comparing the packet times stored in this packet list with those found in ONE sensor's RDR granule entries. The packet times for the attitude and ephemeris must encapsulate the sensor granule times. - Iterate through the non-Diary RDR granules [only one supported now ] and process as follows: --- For each Granule in the sensor RDR get its beginning and end time --- Find the encapsulating this spacecraft diary packet list --- if no encapsulating time found, increment set number and continue --- With list of packets that encapsulate the sci granule, create the spacecraft diary granule and rawApp --- increment set number --- continue

Parameters:
sensorRDR - The sensor of interest
Throws:
RtStpsException - wraps any HDF exception

createSpacecraftDiaryGranule

private Granule createSpacecraftDiaryGranule(RawApplicationPackets rap,
                                             int granuleNumber)
                                      throws RtStpsException
Deprecated. 
Create the SpacecraftDiary granule

Parameters:
rap - the RawApplicationPackets object of interest
granuleNumber - the granule number
Returns:
the create Granule object
Throws:
RtStpsException - wraps any HDF exception

createSpacecraftDiaryRawApplicationPackets

private RawApplicationPackets createSpacecraftDiaryRawApplicationPackets(TimeSpanPacketList tspl,
                                                                         int rapNumber)
Deprecated. 
Create a SpacecraftDiaryRawApplicationPackets object

Parameters:
tspl - a list of packet, time ordered for a given span of time
rapNumber - the raw application packet set number
Returns:
the created SpacecraftDiaryRawApplicationPackets object