public abstract class MsgToPLC extends PLCMsg
| Modifier and Type | Field and Description |
|---|---|
static UUID |
subsystemUUID
The UUID to use in messages sent to the PLC.
|
MESSAGE_SET_VERSION| Modifier | Constructor and Description |
|---|---|
protected |
MsgToPLC()
Sets the version and message identification fields of a message to be sent to the PLC.
|
protected |
MsgToPLC(ByteBuffer data)
Reads and converts the version and message identification fields of a PLC message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(ByteBuffer data)
Converts the message fields to PLC form and appends them to a byte buffer.
|
boolean |
hasSameIdent(MsgToPLC other)
Checks whether this instance and another of MsgToPLC have the same identification info.
|
String |
toString()
Converts the message to a readable string.
|
getVersion, messageVersionIsBadpublic static final UUID subsystemUUID
protected MsgToPLC()
protected MsgToPLC(ByteBuffer data)
data - Hold the PLC message data.public void encode(ByteBuffer data)
PLCMsgpublic boolean hasSameIdent(MsgToPLC other)
other - The other instance.public String toString()
PLCMsgtoString in class PLCMsgCopyright © 2022 LSST. All rights reserved.