
public class ComCamVacuumSubsystem extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.monitor.Monitor.AlarmHandler
| Constructor and Description |
|---|
ComCamVacuumSubsystem()
Main constructor for the ComCamVacuumSubsystem, normally invoked from the
corresponding groovy file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode |
canClearAlert(org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState state)
Clears an alert.
|
void |
clearCondition(int cond)
Clears a condition.
|
List<String> |
getSwitchNames()
Gets the list of switch names.
|
VacSysState |
getVacuumState()
Gets the state of the Vacuum system.
|
void |
postInit() |
void |
postStart() |
boolean |
processAlarm(int event,
int parm,
String cause,
String alarmName) |
void |
setNamedSwitchOn(String name,
boolean on)
Turns a named switch on or off.
|
void |
setSwitchOn(int sw,
boolean on)
Turns a switch on or off.
|
void |
setUpdatePeriod(int value)
Sets the update period.
|
void |
Sleep(double secs)
Sleep - what a waste
**************************************************************************
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ComCamVacuumSubsystem()
public void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecyclepublic boolean processAlarm(int event,
int parm,
String cause,
String alarmName)
processAlarm in interface org.lsst.ccs.monitor.Monitor.AlarmHandlerpublic void Sleep(double secs)
@Command(type=QUERY, description="Get the vacuum system state") public VacSysState getVacuumState()
@Command(type=QUERY, description="Get switch names") public List<String> getSwitchNames() throws VacuumException
VacuumException@Command(type=ACTION, description="Turn on/off a switch") public void setSwitchOn(@Argument(description="The switch number") int sw, @Argument(description="Whether to turn on") boolean on) throws VacuumException
sw - The switch number.on - Whether to turn on or offVacuumException@Command(type=ACTION, description="Turn on/off a named switch") public void setNamedSwitchOn(@Argument(description="The switch name") String name, @Argument(description="Whether to turn on") boolean on) throws VacuumException
name - The switch name.on - Whether to turn on or offVacuumException@Command(type=ACTION, description="Clear a condition") public void clearCondition(@Argument(description="The condition number") int cond) throws VacuumException
cond - The condition number.VacuumException@Command(type=ACTION, description="Set the update interval") public void setUpdatePeriod(@Argument(description="The tick period (ms)") int value)
value - The update period (milliseconds) to set.public org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode canClearAlert(org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState state)
canClearAlert in interface org.lsst.ccs.framework.ClearAlertHandleralert - The alertCopyright © 2019 LSST. All rights reserved.