
| Modifier and Type | Field and Description |
|---|---|
static int |
MESSAGE_SET_VERSION
The version number for the set of messages exchanged by CCS and PLC.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PLCMsg()
Sets the version number to MESSAGE_SET_VERSION.
|
protected |
PLCMsg(ByteBuffer data)
Reads and converts the version field 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.
|
int |
getVersion()
Gets the message-set version number embedded in this message.
|
static boolean |
messageVersionIsBad(ByteBuffer data)
Checks whether the message just received (or encoded) has the correct message-set version
number.
|
String |
toString()
Converts the message to a readable string.
|
public static int MESSAGE_SET_VERSION
protected PLCMsg()
MESSAGE_SET_VERSIONprotected PLCMsg(ByteBuffer data)
data - Holds the PLC message data.public static boolean messageVersionIsBad(ByteBuffer data)
data - The byte buffer containing the message starting at its current position.public void encode(ByteBuffer data)
data - Holds the PLC message data.public int getVersion()
public String toString()
toString in class ObjectCopyright © 2019 LSST. All rights reserved.