|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.ccsds.path.PacketList
final class PacketList
This class manages a sequential list of packets to be filled. It reuses its Packet objects, so subsequent users must not cache them.
Field Summary | |
---|---|
private Packet |
currentPacket
|
private int |
currentPacketIndex
|
private boolean |
isPartialCurrentPacket
|
private java.util.ArrayList<Packet> |
packetList
|
Constructor Summary | |
---|---|
PacketList()
|
Method Summary | |
---|---|
(package private) void |
flushAllData()
Reset the packet list so it contains no full or partial packets. |
(package private) void |
flushCompletedPackets()
Remove all completed packets from the list but keep the last partial one if it exists. |
(package private) Packet |
get(int packetLength)
Get the next packet to fill from the packet list. |
(package private) Packet[] |
getList()
Get a list of completed packets in time order. |
(package private) void |
setCurrentPacketIsComplete()
Mark that the current packet, which was last obtained via get(), as a completed one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<Packet> packetList
private Packet currentPacket
private int currentPacketIndex
private boolean isPartialCurrentPacket
Constructor Detail |
---|
PacketList()
Method Detail |
---|
Packet get(int packetLength)
packetLength
- The length of the desired packet.
final void setCurrentPacketIsComplete()
final void flushAllData()
void flushCompletedPackets()
Packet[] getList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |