Package jmri.jmrix.ipocs.protocol
Class Message
- java.lang.Object
-
- jmri.jmrix.ipocs.protocol.Message
-
public class Message extends java.lang.Object
Represents a IPOCS Message. Protocol details can be found on the project website, https://ipocsmr.github.io- Since:
- 4.21.2
-
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getLength()
java.lang.String
getObjectName()
java.util.List<Packet>
getPackets()
static Message
parse(java.nio.ByteBuffer buffer, java.lang.Integer contentSize)
java.nio.ByteBuffer
serialize()
void
setObjectName(java.lang.String objectName)
-
-
-
Constructor Detail
-
Message
public Message()
-
-
Method Detail
-
getLength
public byte getLength()
-
getObjectName
public java.lang.String getObjectName()
-
setObjectName
public void setObjectName(java.lang.String objectName)
-
getPackets
public java.util.List<Packet> getPackets()
-
serialize
public java.nio.ByteBuffer serialize()
-
-