public final class ShutterStatus extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ShutterStatus.AxisStatus
Holds the status report for a single axis in a
ShutterStatus message. |
| Constructor and Description |
|---|
ShutterStatus(int motionProfile,
boolean isCalibrated,
int smState,
Map<ShutterSide,ShutterStatus.AxisStatus> axes,
boolean isSafetyOn,
Map<RTD,Double> temperature,
Map<RTD,Boolean> tempIsSafe)
Constructs from scratch.
|
| Modifier and Type | Method and Description |
|---|---|
ShutterStatus.AxisStatus |
getAxisStatus(ShutterSide side)
Gets the status info for one of the blade set axes.
|
int |
getMotionProfile()
Gets the motion profile in use
|
int |
getSmState()
Gets the current state for the shutter controller's state machine.
|
Map<RTD,Double> |
getTemperature()
Gets the map of three RTD temperatures in degrees C.
|
Map<RTD,Boolean> |
getTempIsSafe() |
boolean |
isCalibrated()
Is a good calibration in effect?
|
boolean |
isSafetyOn()
Are safety checks in effect?
|
String |
toString()
Creates a string of the format 'ShutterStatus{fieldName=value, ..., axstatus[PLUSX]=
AxisStatus{...}, axstatus[MINUSX]=AxisStatus{...}}'.
|
public ShutterStatus(int motionProfile,
boolean isCalibrated,
int smState,
Map<ShutterSide,ShutterStatus.AxisStatus> axes,
boolean isSafetyOn,
Map<RTD,Double> temperature,
Map<RTD,Boolean> tempIsSafe)
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.isSafetyOn - Are shutter hardware safety checks enabled in the PLC?temperature - The RTD temperatures in degrees Celsius.tempIsSafe - The RTD temperature-in-safe-range flags.IllegalArgumentException - if either the temperature list or the
tempIsSafe list is null or is not of size 3.public int getMotionProfile()
public boolean isCalibrated()
public int getSmState()
public ShutterStatus.AxisStatus getAxisStatus(ShutterSide side)
side - The side whose status info is wanted.AxisStatus object for the given blade set.public boolean isSafetyOn()
public Map<RTD,Double> getTemperature()
Copyright © 2023 LSST. All rights reserved.