|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.xstps.pds.PacketKernel
final class PacketKernel
This class contains fragments of packet information that Sorcerer needs.
Field Summary | |
---|---|
private long |
eshTime
This is the Terra ESH time, which comes from the frame annotation. |
private boolean |
isCUC
If true, the packet time is in CUC format. |
private long |
packetTime
The packet time comes from the packet secondary header. |
Constructor Summary | |
---|---|
PacketKernel()
|
Method Summary | |
---|---|
(package private) int |
comparePacketTime(PacketKernel pk)
Compare the packet times from two PacketKernel objects. |
(package private) void |
copy(PacketKernel pk)
Copy a packet kernel into this object. |
static long |
cucToDaySegmented(long cuc)
Convert unsegmented time to day segmented format. |
(package private) long |
getEshTime()
Get the ESH time. |
(package private) long |
getPacketTime()
Get the packet time. |
(package private) boolean |
isEmpty()
Does this packet kernel contain a packet? |
private long |
makeEshTime(long msFromEpoch)
Make an ESH-format longword. |
private long |
makePacketTime(byte[] data,
int start)
Make a packet time longword. |
(package private) void |
set(Packet packet,
boolean isCUC,
int timeOffset)
Load this object with a different packet. |
java.lang.String |
toString()
Location of time in packet secondary header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long eshTime
8 bits zero. my fill to extend it to 64 bits. 1 bit 1 14 bits truncated julian day (0-9999) epoch: 8-10-95. 17 bits seconds of day (0-86,399) 10 bits milliseconds of second (0-999) 10 bits micro of milli (0-999) 4 bits zero.
private long packetTime
Uint16 day since 1/1/1958 Uint32 millisecond of day Uint16 microsecond of millisecondThe secondary header may have a 9th byte. If it exists, it either precedes the timecode or follows it.
Byte flags (0x80 = quicklook on)
private boolean isCUC
Constructor Detail |
---|
PacketKernel()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
void set(Packet packet, boolean isCUC, int timeOffset)
packet
- the packetisCUC
- if true, this packet is an Aqua one that has
unsegmented time in the secondary header. If false, it is
one that has day segmented time in the secondary header.timeOffset
- offset in bytes to timecode from start of packet.void copy(PacketKernel pk)
final boolean isEmpty()
final long getEshTime()
long getPacketTime()
final int comparePacketTime(PacketKernel pk)
private long makeEshTime(long msFromEpoch)
msFromEpoch
- Milliseconds from epoch.private long makePacketTime(byte[] data, int start)
data
- The packet datastart
- Array index, where the time ispublic static long cucToDaySegmented(long cuc)
aqua s/c bus tlm pkt format epoch=1/1/58 16 bits pfield (I zero this) 32 bits coarse time, seconds since epoch 16 bits fine time, subseconds, 15.2 microseconds (1 mil micro / ffff) 15.2587890625 micro per tick. terra day segmented format (epoch = 1/1/58) 16 bits day 32 bits ms of day 16 bits micro of ms
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |