public class Dispatcher extends Object implements PageActions
PageActions interface. Thread-safe.| Constructor and Description |
|---|
Dispatcher()
Creates a new, inactive instance with an empty list of receivers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReceivers(PageActions... recv)
Safely adds receivers to the list.
|
void |
calibrate()
Command the shutter worker to start a calibration.
|
void |
center()
Command the shutter worker to start centering the blade sets.
|
void |
changeBrakeState(ShutterSide side,
boolean brakeEngaged)
Command the shutter to engage or release one of the blade set brakes.
|
void |
closeShutter()
Command the shutter worker to start closing the shutter.
|
void |
connect()
Connect to the CCS buses and check that the worker is online.
|
void |
disconnect()
Disconnect from the CCS buses.
|
void |
openShutter()
Command the shutter worker to start opening the shutter.
|
void |
prodMode()
Command the shutter worker to go into production mode.
|
void |
resync()
Command the shutter worker to resynchronize its state with that
of the shutter controller.
|
void |
setWorkerName(String workerName)
Sets the name of the target worker subsystem.
|
void |
showStateBundle(PhysicalState phys,
SoftwareState soft)
Update the display of worker state bundle elements.
|
void |
showStatus(ShutterStatus status)
Update displays according to the latest
ShutterStatus message received |
void |
showTrajectory(MotionDone motion)
Update displays using the latest
MotionDone message received. |
void |
showWorkerIsReachable()
Show that we're connected to the buses and that the worker is online.
|
void |
showWorkerIsUnreachable(String message)
Show that the worker subsystem can't be communicated with.
|
void |
stopMotion()
Command the shutter worker to stop all blade set motion and reset the
controller.
|
void |
takeExposure(double exposureTime)
Command the shutter worker to start taking an exposure.
|
void |
toggleSafetyCheck()
Command the shutter to toggle the setting of the safety check flag.
|
public Dispatcher()
public void addReceivers(PageActions... recv)
recv - the objects which will receive dispatched plugin actions.public void takeExposure(double exposureTime)
PageActionstakeExposure in interface PageActionsexposureTime - The exposure time in seconds.public void showTrajectory(MotionDone motion)
PageActionsMotionDone message received.showTrajectory in interface PageActionsmotion - The MotionDone message.public void showWorkerIsUnreachable(String message)
PageActionsshowWorkerIsUnreachable in interface PageActionsmessage - A short message describing the problem.public void showWorkerIsReachable()
PageActionsshowWorkerIsReachable in interface PageActionspublic void showStatus(ShutterStatus status)
PageActionsShutterStatus message receivedshowStatus in interface PageActionsstatus - The ShutterStatus message.public void showStateBundle(PhysicalState phys, SoftwareState soft)
PageActionsshowStateBundle in interface PageActionsphys - The PhysicalState value to display.soft - The SoftwareState value to display.public void openShutter()
PageActionsopenShutter in interface PageActionspublic void disconnect()
PageActionsdisconnect in interface PageActionspublic void connect()
PageActionsconnect in interface PageActionspublic void closeShutter()
PageActionscloseShutter in interface PageActionspublic void changeBrakeState(ShutterSide side, boolean brakeEngaged)
PageActionschangeBrakeState in interface PageActionsside - The blade set to be affected.brakeEngaged - True if the brake is to be engaged, else false.public void stopMotion()
PageActionsstopMotion in interface PageActionspublic void resync()
PageActionsresync in interface PageActionspublic void prodMode()
PageActionsprodMode in interface PageActionspublic void center()
PageActionscenter in interface PageActionspublic void calibrate()
PageActionscalibrate in interface PageActionspublic void toggleSafetyCheck()
PageActionstoggleSafetyCheck in interface PageActionspublic void setWorkerName(String workerName)
PageActionssetWorkerName in interface PageActionsworkerName - the name of the worker subsystem.Copyright © 2023 LSST. All rights reserved.