Package org.yamcs.cfdp.pdu
Class NakPacket
java.lang.Object
org.yamcs.cfdp.pdu.CfdpPacket
org.yamcs.cfdp.pdu.NakPacket
- All Implemented Interfaces:
FileDirective
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.cfdp.pdu.CfdpPacket
CfdpPacket.TransmissionMode
-
Field Summary
Fields inherited from class org.yamcs.cfdp.pdu.CfdpPacket
CFDP, header
-
Constructor Summary
ConstructorDescriptionNakPacket
(long scopeStart, long scopeEnd, List<SegmentRequest> requests, CfdpHeader header) -
Method Summary
Modifier and TypeMethodDescriptionint
long
long
static int
maxNumSegments
(int maxDataSize) returns the maximum number of segments which can be transmitted given the maximum data size of a PDUtoString()
protected void
writeCFDPPacket
(ByteBuffer buffer) Methods inherited from class org.yamcs.cfdp.pdu.CfdpPacket
fromTuple, getCFDPPacket, getHeader, getTransactionId, toByteArray, toTuple, toTuple, toTuple, writeToBuffer
-
Constructor Details
-
NakPacket
-
-
Method Details
-
writeCFDPPacket
- Specified by:
writeCFDPPacket
in classCfdpPacket
-
getDataFieldLength
public int getDataFieldLength()- Specified by:
getDataFieldLength
in classCfdpPacket
-
maxNumSegments
public static int maxNumSegments(int maxDataSize) returns the maximum number of segments which can be transmitted given the maximum data size of a PDU -
getFileDirectiveCode
- Specified by:
getFileDirectiveCode
in interfaceFileDirective
-
getSegmentRequests
-
getScopeStart
public long getScopeStart() -
getScopeEnd
public long getScopeEnd() -
toString
-