Package org.yamcs.cfdp.pdu
Class AckPacket
- java.lang.Object
-
- org.yamcs.cfdp.pdu.CfdpPacket
-
- org.yamcs.cfdp.pdu.AckPacket
-
- All Implemented Interfaces:
FileDirective
public class AckPacket extends CfdpPacket implements FileDirective
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AckPacket.FileDirectiveSubtypeCode
static class
AckPacket.TransactionStatus
-
Field Summary
-
Fields inherited from class org.yamcs.cfdp.pdu.CfdpPacket
buffer, CFDP, header
-
-
Constructor Summary
Constructors Constructor Description AckPacket(ByteBuffer buffer, CfdpHeader header)
AckPacket(FileDirectiveCode code, AckPacket.FileDirectiveSubtypeCode subcode, ConditionCode conditionCode, AckPacket.TransactionStatus status, CfdpHeader header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionCode
getConditionCode()
int
getDataFieldLength()
FileDirectiveCode
getDirectiveCode()
FileDirectiveCode
getFileDirectiveCode()
AckPacket.FileDirectiveSubtypeCode
getFileDirectiveSubtypeCode()
String
toString()
protected void
writeCFDPPacket(ByteBuffer buffer)
-
Methods inherited from class org.yamcs.cfdp.pdu.CfdpPacket
fromTuple, getCFDPPacket, getHeader, getTransactionId, toByteArray, toTuple, toTuple, writeToBuffer
-
-
-
-
Constructor Detail
-
AckPacket
public AckPacket(FileDirectiveCode code, AckPacket.FileDirectiveSubtypeCode subcode, ConditionCode conditionCode, AckPacket.TransactionStatus status, CfdpHeader header)
-
AckPacket
public AckPacket(ByteBuffer buffer, CfdpHeader header)
-
-
Method Detail
-
writeCFDPPacket
protected void writeCFDPPacket(ByteBuffer buffer)
- Specified by:
writeCFDPPacket
in classCfdpPacket
-
getDataFieldLength
public int getDataFieldLength()
- Specified by:
getDataFieldLength
in classCfdpPacket
-
getFileDirectiveCode
public FileDirectiveCode getFileDirectiveCode()
- Specified by:
getFileDirectiveCode
in interfaceFileDirective
-
getDirectiveCode
public FileDirectiveCode getDirectiveCode()
-
getFileDirectiveSubtypeCode
public AckPacket.FileDirectiveSubtypeCode getFileDirectiveSubtypeCode()
-
getConditionCode
public ConditionCode getConditionCode()
-
-