public class VacuumMain
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.framework.ClearAlertHandler, org.lsst.ccs.services.alert.AlertListener
| Constructor and Description |
|---|
VacuumMain()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Build phase
|
org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode |
canClearAlert(org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState alertState)
Callback to clear an
Alert instance. |
void |
clearLatch(int cond)
Clears a latched condition.
|
List<String> |
getSwitchNames()
Gets the list of switch names.
|
VacSysState |
getVacuumState()
Gets the state of the Vacuum system.
|
void |
onAlert(org.lsst.ccs.services.alert.AlertEvent event)
Alert event handler.
|
void |
postInit()
Post initialization phase
|
void |
postStart()
Post start
|
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.
|
getLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthbroadcastStatus, checkAllHardwareStopped, createHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, getStatusBroadcastPeriod, helper, internalCheckHardware, isConnectedToTheBuses, isInEngineeringMode, populateComponentLookup, preBuild, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecycle@Command(type=QUERY,
description="Get the vacuum system state",
level=0)
public VacSysState getVacuumState()
@Command(type=QUERY,
description="Get switch names",
level=0)
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 clearLatch(@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 alertState)
Alert instance.canClearAlert in interface org.lsst.ccs.framework.ClearAlertHandleralert - The Alert instance to clear.alertState - The AlertState for the provided Alert.public void onAlert(org.lsst.ccs.services.alert.AlertEvent event)
onAlert in interface org.lsst.ccs.services.alert.AlertListenerevent - The alert eventCopyright © 2021 LSST. All rights reserved.