|
|||||||||
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.PacketCaddy
final class PacketCaddy
This class holds a Packet and is responsible for filling it with data.
Field Summary | |
---|---|
private int |
bytesToFill
|
private byte[] |
data
|
private FrameAnnotation |
frameAnnotationCopy
This is a clone of the current packet's frame annotation. |
private int |
index
|
private Packet |
packet
|
private Packet.Annotation |
packetAnnotation
|
private int |
packetLength
|
private PathServiceSetup |
setup
|
Constructor Summary | |
---|---|
PacketCaddy(PathServiceSetup setup)
Construct the PacketCaddy. |
Method Summary | |
---|---|
(package private) void |
appendHeader(SplitHeader header)
Copy the packet header to the beginning of the current packet. |
(package private) int |
appendRestOfZone(PacketZone zone)
Move all remaining data in the packet zone to the end of the current packet. |
(package private) void |
appendWaste()
Finish filling the current packet repeatedly appending the waste byte to the packet. |
(package private) void |
finish(PacketZone zone)
Finish filling the current packet by moving as much data as needed from the packet zone. |
(package private) int |
getBytesToFill()
Get the number of bytes yet to fill in the current packet. |
(package private) void |
setAnotherFrameAnnotation(FrameAnnotation fa)
I absorb another frame's annotation (its quality) into this packet's frame annotation. |
(package private) void |
setPacket(Packet p)
Change the packet this caddy is filling. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Packet packet
private Packet.Annotation packetAnnotation
private int packetLength
private int index
private byte[] data
private int bytesToFill
private PathServiceSetup setup
private FrameAnnotation frameAnnotationCopy
Constructor Detail |
---|
PacketCaddy(PathServiceSetup setup)
setup
- A configuration.Method Detail |
---|
final int getBytesToFill()
void setPacket(Packet p)
void setAnotherFrameAnnotation(FrameAnnotation fa)
int appendRestOfZone(PacketZone zone)
void finish(PacketZone zone)
void appendHeader(SplitHeader header)
void appendWaste()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |