public class HexValveMain
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 |
|---|
HexValveMain()
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 |
connectHex(String hex,
String comp)
Connect a heat exchanger to a cryo compressor.
|
List<String> |
getCmprNames()
Gets a list of the valid compressor names.
|
List<String> |
getHexNames()
Gets a list of the valid heat exchanger names.
|
HexValveState |
getSystemState()
Gets the state of the hex valve system.
|
void |
onAlert(org.lsst.ccs.services.alert.AlertEvent event)
Alert event handler.
|
void |
postInit()
Initializes the heat exchanger valve subsystem.
|
void |
postStart()
Starts the subsystem.
|
void |
setUpdatePeriod(int value)
Sets the monitor update period.
|
void |
setValve(int valve,
boolean vstate)
set the state of a single valve
|
String |
showValveStates()
Show the state of the compressor valves.
|
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, initAgent, 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 hex valve state",
level=0)
public HexValveState getSystemState()
@Command(type=QUERY,
description="Get the valid heat exchanger names",
level=0)
public List<String> getHexNames()
@Command(type=QUERY,
description="Get the valid compressor names",
level=0)
public List<String> getCmprNames()
@Command(type=ACTION,
description="Connect hex to compressor")
public void connectHex(@Argument(description="Heat exchanger name")
String hex,
@Argument(description="Compressor name")
String comp)
throws VacuumException
hex - The heat exchanger namecomp - The compressor nameVacuumException@Command(type=ACTION,
level=10,
description="set the state of a single valve")
public void setValve(@Argument(description="valve number")
int valve,
@Argument(description="false=open or true=close")
boolean vstate)
throws VacuumException
valve - numbertrue - for close. false for openVacuumException@Command(type=ACTION,
description="Set the tick interval")
public void setUpdatePeriod(@Argument(description="Tick interval (ms)")
int value)
value - The 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 event@Command(type=ACTION,
description="report state of valves")
public String showValveStates()
throws VacuumException
VacuumExceptionCopyright © 2021 LSST. All rights reserved.