public class SimulatedActions extends Object implements Actions
Actions in which no hardware operations are performed.
All actions are logging at info level. Subsystem-level operations such as
alert handling or manipulation of the state bundle are implemented.| Constructor and Description |
|---|
SimulatedActions(StateMachine machine,
org.lsst.ccs.Subsystem subsys)
Saves references to the components that actually implement the actions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelSyncTimer()
Cancels the sync timer if it's still running.
|
boolean |
isBadExposureTime(Duration exposureTime)
Determines whether the exposure time has an invalid value, for example, it's below
the minimum.
|
void |
lowerSyncAlert()
Sets the severity of the SYNC alert to NOMINAL so that it may be cleared.
|
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 |
raiseSyncAlert()
Changes the severity of the SYNC alert to 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(MotionDone mot)
Sends the motion profile out on the CCS status bus.
|
void |
setPhysicalState(PhysicalState newState)
Sets the state the appears in the subsystems state bundle.
|
boolean |
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.
|
public SimulatedActions(StateMachine machine, org.lsst.ccs.Subsystem subsys)
machine - A reference to the StateMachine component.subsys - A reference to the subsystem object.public void cancelSyncTimer()
ActionscancelSyncTimer in interface ActionsActions.startSyncTimer()public boolean isBadExposureTime(Duration exposureTime)
ActionsisBadExposureTime in interface ActionsexposureTime - The time to check.public void lowerSyncAlert()
ActionslowerSyncAlert in interface Actionspublic boolean makePartialContact()
ActionsmakePartialContact in interface Actionspublic boolean makeFullContact()
ActionsmakeFullContact in interface Actionspublic void setPhysicalState(PhysicalState newState)
ActionssetPhysicalState in interface ActionsnewState - The new state value.public void raiseSyncAlert()
ActionsraiseSyncAlert in interface Actionspublic boolean readyForCalibration()
ActionsreadyForCalibration in interface Actionspublic void resetPLC()
Actionspublic void relay(MsgToPLC eventMsg)
Actionspublic void saveCalib(CalibDone cal)
Actionspublic void sendProfile(MotionDone mot)
ActionssendProfile in interface Actionspublic void startFirstCentering()
ActionsstartFirstCentering in interface ActionsActions.startSecondCentering()public void startSecondCentering()
ActionsstartFirstCentering().startSecondCentering in interface ActionsActions.startFirstCentering()public boolean shutterIsReady()
ActionsshutterIsReady in interface Actionspublic void startSyncTimer()
ActionssyncYimeout() when it expires.startSyncTimer in interface ActionsActions.cancelSyncTimer()public void terminateContact()
ActionsterminateContact in interface ActionsCopyright © 2019 LSST. All rights reserved.