public interface Actions
| Modifier and Type | Method and Description |
|---|---|
void |
cancelSyncTimer()
Cancels the sync timer if it's still running.
|
void |
disableWatchdog()
Disables the watchdog that raises an alert if we don't get any PLC messages for a long time.
|
void |
enableWatchdog()
Enables the watchdog that raises an alert if we don't get any PLC messages for a long time.
|
boolean |
isBadExposureTime(Duration exposureTime)
Determines whether the exposure time has an invalid value, for example, it's below
the minimum.
|
void |
lowerMotionAlert()
Sets the severity of the MOTION alert to NOMINAL.
|
void |
lowerPLCAlert()
Sets the severity of the PLC alert to NOMINAL.
|
void |
lowerSyncAlert()
Sets the severity of the SYNC alert to NOMINAL.
|
void |
lowerWatchdogAlert()
Sets the severity of the PLC_WATCHDOG alert to NOMINAL.
|
boolean |
makeFullContact()
Widens the link to the shutter controller, allowing the full exchange
of all message types.
|
boolean |
makePartialContact()
Makes a link to the shutter controller, just enough to sent rest messages
and receive shutter status messages.
|
void |
publishEnableStatus(boolean isEnabled)
Record when we enter or leave the
Enabled state. |
void |
raisePLCAlert(Error err)
Raises a PLC alert with severity ALARM.
|
void |
raiseSyncAlert()
Raises a SYNC alert with severity ALARM.
|
boolean |
readyForCalibration()
Determines if the shutter is ready for calibration.
|
void |
relay(MsgToPLC eventMsg)
Relays an event to the PLC via the given message instance.
|
void |
resetPLC()
Sends a reset() event to the PLC.
|
void |
saveCalib(CalibDone cal)
Saves the calibration data to a filesystem on the CCS network.
|
void |
sendProfile(MotionDonePLC mot)
Sends the motion profile out on the CCS status bus.
|
void |
setPhysicalState(PhysicalState newState)
Sets the physical shutter custom state that appears in the subsystem's state bundle.
|
void |
setSoftwareState(SoftwareState newState)
Sets the CCS software custom state that appears in the subsystem's state bundle.
|
String |
shutterIsReady()
Determines if the shutter is ready for production data-taking.
|
void |
startFirstCentering()
Sends an event to the PLC that will start it moving one of the blade sets to its center position.
|
void |
startSecondCentering()
Sends an event to the PLC that will start it moving the second blade set to be centered, which is the
one that wasn't moved by
startFirstCentering(). |
void |
startSyncTimer()
Starts a timer which will generate a
syncYimeout() when it expires. |
void |
terminateContact()
Close any connection we may have to the shutter controller and stop decoding any messages
we have already received.
|
void cancelSyncTimer()
startSyncTimer()void disableWatchdog()
enableWatchdog()void enableWatchdog()
disableWatchdog()boolean isBadExposureTime(Duration exposureTime)
exposureTime - The time to check.void lowerMotionAlert()
void lowerPLCAlert()
void lowerSyncAlert()
void lowerWatchdogAlert()
boolean makePartialContact()
boolean makeFullContact()
void publishEnableStatus(boolean isEnabled)
Enabled state.isEnabled - True if entering, false if exiting.void setPhysicalState(PhysicalState newState)
newState - The new state value.void setSoftwareState(SoftwareState newState)
newState - The new state value.void raisePLCAlert(Error err)
err - The error message received from the PLC.void raiseSyncAlert()
boolean readyForCalibration()
void resetPLC()
void relay(MsgToPLC eventMsg)
void saveCalib(CalibDone cal)
void sendProfile(MotionDonePLC mot)
void startFirstCentering()
startSecondCentering()void startSecondCentering()
startFirstCentering().startFirstCentering()String shutterIsReady()
void startSyncTimer()
syncYimeout() when it expires.cancelSyncTimer()void terminateContact()
Copyright © 2020 LSST. All rights reserved.