Package org.yamcs.cfdp.pdu
Class CfdpHeader
- java.lang.Object
-
- org.yamcs.cfdp.pdu.CfdpHeader
-
public class CfdpHeader extends Object
-
-
Constructor Summary
Constructors Constructor Description CfdpHeader(boolean fileDirective, boolean towardsSender, boolean acknowledged, boolean withCrc, int datalength, int entityIdLength, int sequenceNumberLength, long sourceId, long destinationId, long sequenceNumber)CfdpHeader(boolean fileDirective, boolean towardsSender, boolean acknowledged, boolean withCrc, int entityIdLength, int sequenceNumberLength, long sourceId, long destinationId, long sequenceNumber)CfdpHeader(ByteBuffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDataLength()longgetDestinationId()intgetEntityIdLength()intgetLength()longgetSequenceNumber()intgetSequenceNumberLength()longgetSourceId()CfdpTransactionIdgetTransactionId()booleanisAcknowledged()booleanisFileDirective()voidsetDataLength(int datalength)StringtoString()booleanwithCrc()protected voidwriteToBuffer(ByteBuffer buffer)
-
-
-
Constructor Detail
-
CfdpHeader
public CfdpHeader(boolean fileDirective, boolean towardsSender, boolean acknowledged, boolean withCrc, int entityIdLength, int sequenceNumberLength, long sourceId, long destinationId, long sequenceNumber)
-
CfdpHeader
public CfdpHeader(boolean fileDirective, boolean towardsSender, boolean acknowledged, boolean withCrc, int datalength, int entityIdLength, int sequenceNumberLength, long sourceId, long destinationId, long sequenceNumber)
-
CfdpHeader
public CfdpHeader(ByteBuffer buffer)
-
-
Method Detail
-
setDataLength
public void setDataLength(int datalength)
-
getTransactionId
public CfdpTransactionId getTransactionId()
-
isFileDirective
public boolean isFileDirective()
-
withCrc
public boolean withCrc()
-
getEntityIdLength
public int getEntityIdLength()
-
getSequenceNumberLength
public int getSequenceNumberLength()
-
getSequenceNumber
public long getSequenceNumber()
-
getDestinationId
public long getDestinationId()
-
getSourceId
public long getSourceId()
-
isAcknowledged
public boolean isAcknowledged()
-
writeToBuffer
protected void writeToBuffer(ByteBuffer buffer)
-
getDataLength
public int getDataLength()
-
getLength
public int getLength()
- Returns:
- the header length
-
-