public class ShutterStatus extends MsgToCCS implements Serializable
MESSAGE_SET_VERSION| Constructor and Description |
|---|
ShutterStatus(ByteBuffer data)
Reads and converts the PLC form of the message.
|
ShutterStatus(int sequence,
int motionProfile,
boolean isCalibrated,
int smState,
Supplier<AxisStatus> axes)
Constructs from scratch.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(ByteBuffer data)
Puts the sequence number into a data buffer.
|
AxisStatus |
getAxisStatus(Axis ax) |
int |
getMotionProfile() |
int |
getSmState() |
boolean |
isCalibrated() |
String |
toString()
Converts the message to a readable string.
|
getVersion, messageVersionIsBadpublic ShutterStatus(int sequence,
int motionProfile,
boolean isCalibrated,
int smState,
Supplier<AxisStatus> axes)
sequence - A message sequence number.motionProfile - The index number of the motion profile in effect.isCalibrated - Is the shutter properly calibrated?smState - The current state of the PLC state machine.axes - The source of the AxisStatus values to be stored in this message.public ShutterStatus(ByteBuffer data)
data - Holds the PLC message data.public void encode(ByteBuffer data)
MsgToCCSpublic int getMotionProfile()
public boolean isCalibrated()
public int getSmState()
public AxisStatus getAxisStatus(Axis ax)
public String toString()
PLCMsgtoString in class MsgToCCSCopyright © 2019 LSST. All rights reserved.