|
|||||||||
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.CRISRawApplicationPackets
public class CRISRawApplicationPackets
Build CrIS [@link RawApplicationPackets} by capturing groups scan packets between packet with and application ID of 1289. The first group captured is likely going to be short due to the fact that frame lock could occur at any time. Scans groups that form a granule are specified externally in the constructor.
Field Summary | |
---|---|
private boolean |
firstPacket
|
private int |
scanCounter
|
private int |
scansPerGranule
|
private boolean |
scansStarted
|
private Stats |
stats
|
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets |
---|
packetPool |
Constructor Summary | |
---|---|
CRISRawApplicationPackets(int allRDRId,
int setNum)
Constructor which attempts to read the RawApplicationPacket entry that pre-exists. |
|
CRISRawApplicationPackets(int readId,
int setNum,
boolean usedByGranuleOnly)
|
|
CRISRawApplicationPackets(SpacecraftId satellite,
int setNum,
int scansPerGranule,
PacketPool packetPool)
Constructor to initialize the RawApplicationPackets algorithm for CrIS. |
|
CRISRawApplicationPackets(Stats stats,
SpacecraftId satellite,
int setNum,
int scansPerGranule,
PacketPool packetPool)
|
Method Summary | |
---|---|
void |
close()
Close the RDR/HDF file specifically for the RawApplicationsPackets. |
boolean |
notFull(Packet p)
Check that this object is not full and can accumulate more packets before being written. |
void |
put(Packet p)
Put the packet into the CrISRawApplications area, the method notFull should
have been called first to check if this is allowed or not. |
boolean |
write(int hdfFile)
Write the accumulate packets to the RDR/HDF file. |
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 |
Field Detail |
---|
private boolean scansStarted
private int scanCounter
private int scansPerGranule
private Stats stats
private boolean firstPacket
Constructor Detail |
---|
public CRISRawApplicationPackets(SpacecraftId satellite, int setNum, int scansPerGranule, PacketPool packetPool)
satellite
- the satellite ID as defined by the mission documentssetNum
- the set number which is appended to the end of each RawApplicationPacket in the HDFscansPerGranule
- The number of scans to collect to make one granulepublic CRISRawApplicationPackets(Stats stats, SpacecraftId satellite, int setNum, int scansPerGranule, PacketPool packetPool)
public CRISRawApplicationPackets(int allRDRId, int setNum) throws RtStpsException
allRDRId
- the rdrAll Groups idsetNum
- the set number of raw entry
RtStpsException
java.lang.NullPointerException
HDF5LibraryException
public CRISRawApplicationPackets(int readId, int setNum, boolean usedByGranuleOnly) throws RtStpsException
RtStpsException
Method Detail |
---|
public boolean notFull(Packet p) throws RtStpsException
notFull
in class RawApplicationPackets
p
- a Packet to be put into the CrIS RawApplicationPackets area
wraps
- any HDF exceptions in RtStpsException
RtStpsException
public void put(Packet p) throws RtStpsException
notFull
should
have been called first to check if this is allowed or not.
put
in class RawApplicationPackets
p
- a Packet to put into it
wraps
- any HDF exceptions in RtStpsException
RtStpsException
public boolean write(int hdfFile) throws RtStpsException
notFull
and put
.
write
in class RawApplicationPackets
hdfFile
- the handle to the RDR/HDF file that the packets should written to
wraps
- any HDF exceptions in RtStpsException
RtStpsException
public void close() throws RtStpsException
close
in class RawApplicationPackets
wraps
- any HDF exceptions in RtStpsException
RtStpsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |