
public abstract class PLCMsg extends Object
| Modifier and Type | Field and Description |
|---|---|
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() |
String |
toString()
Converts the message to a readable string.
|
public int MESSAGE_SET_VERSION
protected PLCMsg()
MESSAGE_SET_VERSIONprotected PLCMsg(ByteBuffer data)
data - Holds the PLC message data.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.