Class AcknowledgementPacket
- java.lang.Object
-
- jmri.jmrix.ipocs.protocol.packets.Packet
-
- jmri.jmrix.ipocs.protocol.packets.AcknowledgementPacket
-
public class AcknowledgementPacket extends Packet
Packet transmitted as a response when requested by sender of a message and packet.- Since:
- 4.21.2
-
-
Field Summary
Fields Modifier and Type Field Description static byteIDENT
-
Constructor Summary
Constructors Constructor Description AcknowledgementPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetAckReason()bytegetId()protected voidparseSpecific(java.nio.ByteBuffer buffer)protected byte[]serializeSpecific()voidsetAckReason(short ackReason)
-
-
-
Field Detail
-
IDENT
public static final byte IDENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AcknowledgementPacket
public AcknowledgementPacket()
-
-
Method Detail
-
parseSpecific
protected void parseSpecific(java.nio.ByteBuffer buffer)
- Specified by:
parseSpecificin classPacket
-
serializeSpecific
protected byte[] serializeSpecific()
- Specified by:
serializeSpecificin classPacket
-
getAckReason
public short getAckReason()
-
setAckReason
public void setAckReason(short ackReason)
-
-