gov.nasa.gsfc.drl.rtstps.core.output.hdf5
Class SpacecraftDiaryRawApplicationPackets2
java.lang.Object
gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets
gov.nasa.gsfc.drl.rtstps.core.output.hdf5.SpacecraftDiaryRawApplicationPackets2
public class SpacecraftDiaryRawApplicationPackets2
- extends RawApplicationPackets
Method Summary |
void |
close()
Close out the RawApplicationPacket which writes the results to the HDF file and cleans up. |
boolean |
greaterThanEqualTo(long timeStamp1,
long timeStamp2,
int seconds)
|
boolean |
notFull(Packet p)
Determine if the RawApplicationPacket is full or not. |
void |
put(Packet p)
Put a packet into the RawApplicationPacket after checking if it is full or not. |
boolean |
write(int hdfFile)
Write the collected group of packets to the designated HDF file using the handle |
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets |
getAppIdCounts, getData, getDataSet, getDataSpace, getFirstTime, getLastTime, getPacketList, getPacketTypeCounts, getPacketTypes, getStaticHeader, getTimeSpan, getTotalPacketCounts, setFirstTime, setLastTime, updateAppIdCounters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
firstTime
private long firstTime
fullGranule
private boolean fullGranule
stats
private Stats stats
currentTimeOfGranule
private long currentTimeOfGranule
SpacecraftDiaryRawApplicationPackets2
public SpacecraftDiaryRawApplicationPackets2(SpacecraftId satellite,
int setNum,
PacketPool packetPool)
SpacecraftDiaryRawApplicationPackets2
public SpacecraftDiaryRawApplicationPackets2(Stats stats,
SpacecraftId satellite,
int setNum,
PacketPool packetPool)
SpacecraftDiaryRawApplicationPackets2
public SpacecraftDiaryRawApplicationPackets2(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 idsetNum
- the set number of raw entry
- Throws:
java.lang.NullPointerException
HDF5LibraryException
RtStpsException
SpacecraftDiaryRawApplicationPackets2
public SpacecraftDiaryRawApplicationPackets2(int readId,
int setNum,
boolean usedByGranuleOnly)
throws RtStpsException
- Throws:
RtStpsException
notFull
public boolean notFull(Packet p)
throws RtStpsException
- Description copied from class:
RawApplicationPackets
- Determine if the RawApplicationPacket is full or not. Override this method
to provide the implementation.
- Specified by:
notFull
in class RawApplicationPackets
- Parameters:
p
- the packet to be added to the RawApplicationPacket
- Returns:
- true or false
- Throws:
RtStpsException
put
public void put(Packet p)
throws RtStpsException
- Description copied from class:
RawApplicationPackets
- Put a packet into the RawApplicationPacket after checking if it is full or not. Override
this method to provide the implementation.
- Specified by:
put
in class RawApplicationPackets
- Parameters:
p
- packet to be written
- Throws:
RtStpsException
write
public boolean write(int hdfFile)
throws RtStpsException
- Write the collected group of packets to the designated HDF file using the handle
- Overrides:
write
in class RawApplicationPackets
- Parameters:
hdfFile
- handle to the HDF file
- Returns:
- true if the RawApplicationPacket was written, false if not
- Throws:
any
- HDF exceptions are wrapped in an RtStpsException
RtStpsException
close
public void close()
throws RtStpsException
- Close out the RawApplicationPacket which writes the results to the HDF file and cleans up.
- Overrides:
close
in class RawApplicationPackets
- Throws:
any
- HDF exceptions are wrapped in an RtStpsException
RtStpsException
greaterThanEqualTo
public boolean greaterThanEqualTo(long timeStamp1,
long timeStamp2,
int seconds)