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

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

public class SpacecraftDiaryRawApplicationPackets
extends RawApplicationPackets

Implements the SpacecraftDiary RawApplication area which is a special case of most of the other sensors supported by this package. This class largely ignores or does not support the infrastructure given by the RawApplicationPackets super class. It does not accept packets one at a time from the caller. Instead it provides its own method to receive a list of packets which make up one SpaceDiaryRawApplication area.


Field Summary
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets
packetPool
 
Constructor Summary
SpacecraftDiaryRawApplicationPackets(int allRDRId, int setNum)
          Constructor which attempts to read the RawApplicationPacket entry that pre-exists.
SpacecraftDiaryRawApplicationPackets(int readId, int setNum, boolean usedByGranuleOnly)
           
SpacecraftDiaryRawApplicationPackets(SpacecraftId satellite, int setNum, PacketPool packetPool)
          Constructor for creating an nth instance of a Spacecraft Diary raw application data packet area
 
Method Summary
 boolean notFull(Packet p)
          This method is not used by the Spacecraft Diary
 void put(Packet p)
          This method is not used by the Spacecraft Diary
 void putAll(java.util.List<Packet> packets)
          Put all the packets at once into this Spacecraft Diary ApplicationPackets
 
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets
close, getAppIdCounts, getData, getDataSet, getDataSpace, getFirstTime, getLastTime, getPacketList, getPacketTypeCounts, getPacketTypes, getStaticHeader, getTimeSpan, getTotalPacketCounts, setFirstTime, setLastTime, updateAppIdCounters, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpacecraftDiaryRawApplicationPackets

public SpacecraftDiaryRawApplicationPackets(SpacecraftId satellite,
                                            int setNum,
                                            PacketPool packetPool)
Constructor for creating an nth instance of a Spacecraft Diary raw application data packet area

Parameters:
satellite - the name of the spacecraft
setNum - the set number

SpacecraftDiaryRawApplicationPackets

public SpacecraftDiaryRawApplicationPackets(int allRDRId,
                                            int setNum)
                                     throws RtStpsException
Constructor which attempts to read the RawApplicationPacket entry that pre-exists. The contents of the dataspace are read into a memory buffer... assuming it will fit.

Parameters:
allRDRId - the rdrAll Groups id
setNum - the set number of raw entry
Throws:
java.lang.NullPointerException
HDF5LibraryException
RtStpsException

SpacecraftDiaryRawApplicationPackets

public SpacecraftDiaryRawApplicationPackets(int readId,
                                            int setNum,
                                            boolean usedByGranuleOnly)
                                     throws RtStpsException
Throws:
RtStpsException
Method Detail

notFull

public boolean notFull(Packet p)
This method is not used by the Spacecraft Diary

Specified by:
notFull in class RawApplicationPackets
Parameters:
p - the packet to be added to the RawApplicationPacket
Returns:
true or false

put

public void put(Packet p)
This method is not used by the Spacecraft Diary

Specified by:
put in class RawApplicationPackets
Parameters:
p - packet to be written

putAll

public void putAll(java.util.List<Packet> packets)
Put all the packets at once into this Spacecraft Diary ApplicationPackets

Parameters:
packets - the list of packets