|
|||||||||
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.ATMSRawApplicationPackets
public class ATMSRawApplicationPackets
Build the RawApplicationPackets (or read a pre-existing one) for the HDF for ATMS. The ATMS outputs scans of 104 packets. Groups of 3 of these are associated together. When the appid 528 packet arrives, the first one sets the scan start flag set, 103 ATMS packets should arrive before the next appid 528 packets should arrive. Somewhere near the end of this first scan group the 531 packet arrives. When it does, this signals the start of a group of 3 scans. This class "locks" on the first 3 group scans and counts out groups of them before writing them to the RawApplicationPackets area. The "scansPerGranule" should be in groups of 3, although this is not enforced as these form a single unit from processing standpoint. The initial set of scans received may be partial since we do not know when signal lock occurs, this is taken into account here so the first Granule/RawApp area is likely to be "short".
Field Summary | |
---|---|
private int |
maxScanGroup
|
private java.util.List<Packet> |
scanFilling
|
private int |
scanGroupCounter
|
private int |
scanStarts
|
private ATMSScanState |
scanState
|
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.output.hdf5.RawApplicationPackets |
---|
packetPool |
Constructor Summary | |
---|---|
ATMSRawApplicationPackets(int allRDRId,
int setNum)
Constructor which attempts to read the RawApplicationPacket entry that pre-exists. |
|
ATMSRawApplicationPackets(int readId,
int setNum,
boolean usedByGranuleOnly)
|
|
ATMSRawApplicationPackets(SpacecraftId satellite,
int setNum,
int scansPerGranule,
PacketPool packetPool)
Constructor for creating an nth instance of a ATMS raw application data packet area builder. |
Method Summary | |
---|---|
void |
close()
Close out the RawApplicationPacket which writes the results to the HDF file and cleans up. |
boolean |
notFull(Packet p)
Determine if the object will take more packets. |
void |
put(Packet p)
The packet is stored on a local list until the state machine says it is full or complete. |
private void |
setScanState(Packet p)
The ATMS state machine algorithm is built around the scan of packets appid 528 which are in groups of 3 as dictated by the appid 531 packet. |
boolean |
write(int hdfFile)
Write the ATMSRawApplication structure to the given HDF file specified by the HDF input 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 |
Field Detail |
---|
private java.util.List<Packet> scanFilling
private int maxScanGroup
private ATMSScanState scanState
private int scanGroupCounter
private int scanStarts
Constructor Detail |
---|
public ATMSRawApplicationPackets(SpacecraftId satellite, int setNum, int scansPerGranule, PacketPool packetPool)
satellite
- the name of the spacecraft as a SpacecraftIdsetNum
- the set numberscansPerGranule
- the number of sensor scans per granulepublic ATMSRawApplicationPackets(int allRDRId, int setNum) throws RtStpsException
allRDRId
- the rdrAll Groups idsetNum
- the set number of raw entry
RtStpsException
- Wraps any HDF exceptionpublic ATMSRawApplicationPackets(int readId, int setNum, boolean usedByGranuleOnly) throws RtStpsException
RtStpsException
Method Detail |
---|
public boolean notFull(Packet p) throws RtStpsException
notFull
in class RawApplicationPackets
p
- packet to be written
RtStpsException
- Wraps any HDF exceptionpublic void put(Packet p) throws RtStpsException
put
in class RawApplicationPackets
p
- ATMS science packet to be written (appid 514, 528, 530, 531)
RtStpsException
- an exception related to the state machine or wraps any HDF exceptionpublic boolean write(int hdfFile) throws RtStpsException
write
in class RawApplicationPackets
hdfFile
- input handle to a previous opened HDF file
RtStpsException
- Wraps HDF exceptionsprivate void setScanState(Packet p) throws RtStpsException
p
- an ATMS input packet to be processed through the scan state machine
RtStpsException
- Wraps HDF exceptionspublic void close() throws RtStpsException
close
in class RawApplicationPackets
RtStpsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |