|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets
gov.nasa.gsfc.drl.rtstps.core.output.hdf5.CountingRawApplicationPackets
@Deprecated public class CountingRawApplicationPackets
Create a raw application packet dataset in an HDF file for an RDR based on a count of incoming packets such as: '/All_Data/VIIRS-SCIENCE-RDR/RawApplicationPackets0' This is a very basic and overly simplistic implementation that is largly designed to be subclasses for each specific sensor. The dataset is created based on a timed holding of packets hung up in the object. (constructor, notFull, put) The time is based on the clock time when the object was created and a given user argument of seconds in the future. It assumed the object will be used immediately to put packets in it and then create the HDF dataset. Once the time span has occurred, the accumulated packets may then be written to the HDF file, created in the RDR dataset structure. (writeRDR) A static header is calculated from the packets given to the object, then the packets themselves are written to the dataset. The object should be explicitly closed by calling close or the HDF API will get a heap exception eventually.
Field Summary | |
---|---|
private int |
maxPacketCount
Deprecated. |
private int |
packetCounter
Deprecated. |
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets |
---|
packetPool |
Constructor Summary | |
---|---|
CountingRawApplicationPackets(int allRDRId,
int setNum)
Deprecated. Constructor which attempts to read the RawApplicationPacket entry that pre-exists. |
|
CountingRawApplicationPackets(SpacecraftId satellite,
RDRName rdrName,
int setNum,
int packetCount)
Deprecated. Constructor for creating an nth instance of a raw application data packet area |
Method Summary | |
---|---|
boolean |
notFull(Packet p)
Deprecated. Determine if the object will take more packets. |
void |
put(Packet p)
Deprecated. Give the object a packet to hang up, eventually to be written to the HDF. |
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 |
Field Detail |
---|
private int maxPacketCount
private int packetCounter
Constructor Detail |
---|
public CountingRawApplicationPackets(SpacecraftId satellite, RDRName rdrName, int setNum, int packetCount)
satellite
- the name of the spacecraftrdrName
- the rdrName of the RDR dataset (i.e. VIIRS-SCIENCE-RDR)setNum
- the set numberpacketCount
- counts first or standalone packets, middle are last packets are accepted regardless of specified countpublic CountingRawApplicationPackets(int allRDRId, int setNum) throws RtStpsException
allRDRId
- the rdrAll Groups idsetNum
- the set number of raw entry
RtStpsException
Method Detail |
---|
public boolean notFull(Packet p)
notFull
in class RawApplicationPackets
p
- packet to be written
public void put(Packet p) throws RtStpsException
put
in class RawApplicationPackets
p
- packet to be written
RtStpsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |