public class Dispatcher extends Object implements PluginActions
PluginActions interface.| Constructor and Description |
|---|
Dispatcher(ShutterPlugin plugin,
PluginActions... receivers) |
| Modifier and Type | Method and Description |
|---|---|
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 |
showCommandFailure(String message)
Show that the last attempt to command the shutter worker failed.
|
void |
showCommandSuccess()
Show that the shutter worker accepted the last command.
|
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.
|
public Dispatcher(ShutterPlugin plugin, PluginActions... receivers)
public void takeExposure(double exposureTime)
PluginActionstakeExposure in interface PluginActionsexposureTime - The exposure time in seconds.public void showTrajectory(MotionDone motion)
PluginActionsMotionDone message received.showTrajectory in interface PluginActionsmotion - The MotionDone message.public void showWorkerIsUnreachable(String message)
PluginActionsshowWorkerIsUnreachable in interface PluginActionsmessage - A short message describing the problem.public void showWorkerIsReachable()
PluginActionsshowWorkerIsReachable in interface PluginActionspublic void showStatus(ShutterStatus status)
PluginActionsShutterStatus message receivedshowStatus in interface PluginActionsstatus - The ShutterStatus message.public void showStateBundle(PhysicalState phys, SoftwareState soft)
PluginActionsshowStateBundle in interface PluginActionsphys - The PhysicalState value to display.soft - The SoftwareState value to display.public void showCommandFailure(String message)
PluginActionsshowCommandFailure in interface PluginActionsmessage - A short explanation of the failure..public void showCommandSuccess()
PluginActionsshowCommandSuccess in interface PluginActionspublic void openShutter()
PluginActionsopenShutter in interface PluginActionspublic void disconnect()
PluginActionsdisconnect in interface PluginActionspublic void connect()
PluginActionsconnect in interface PluginActionspublic void closeShutter()
PluginActionscloseShutter in interface PluginActionspublic void changeBrakeState(ShutterSide side, boolean brakeEngaged)
PluginActionschangeBrakeState in interface PluginActionsside - The blade set to be affected.brakeEngaged - True if the brake is to be engaged, else false.public void stopMotion()
PluginActionsstopMotion in interface PluginActionspublic void resync()
PluginActionsresync in interface PluginActionspublic void prodMode()
PluginActionsprodMode in interface PluginActionspublic void center()
PluginActionscenter in interface PluginActionspublic void calibrate()
PluginActionscalibrate in interface PluginActionsCopyright © 2020 LSST. All rights reserved.