
public class PathfinderSubsystem
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.services.alert.AlertListener
| Constructor and Description |
|---|
PathfinderSubsystem()
Main constructor for the PathfinderSubsystem, normally invoked from the
corresponding groovy file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
void |
clearLatch(int cond)
Clears a latched condition.
|
void |
enableAlertResponse(boolean enable) |
List<String> |
getFanNames()
Gets the list of fan names.
|
VacSysState |
getFullState()
Gets the subsystem state.*
|
double |
getHeaterLevel(int heaterId)
Gets a heater level
|
List<String> |
getSwitchNames()
Gets the list of switch names.
|
VacSysState |
getVacuumState()
Gets the state of the Vacuum system.
|
double |
getWaterValveControlCurrent()
Get the water valve control current
|
void |
init() |
boolean |
isAlertResponseEnabled() |
boolean |
isMonAlertEnabledVATShut() |
void |
onAlert(org.lsst.ccs.services.alert.AlertEvent event)
Alert event handler.
|
void |
postInit() |
void |
postStart() |
void |
setFanSpeed(String name,
double speed)
Sets a fan speed (using its name).
|
void |
setFanState(String name,
FanState state)
Sets a fan state (using its name).
|
String |
setHeater(int heaterId,
double level)
Sets a heater level
|
void |
setMonAlertEnabledVATShut(boolean enable) |
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 |
setWaterValveOpen(boolean openValve)
Sets the state of the water valve
|
void |
Sleep(double secs)
Sleep - what a waste
**************************************************************************
|
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, preInit, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic PathfinderSubsystem()
public void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic 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 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 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.@Command(type=ACTION, description="Sets the heater level") public String setHeater(@Argument(description="heater ID") int heaterId, @Argument(description="heater level in mA (4-20)") double level) throws VacuumException
heaterId - The heater IDlevel - The heater level in mA (4-20)VacuumException@Command(type=ACTION, description="Sets the water valve open or close") public void setWaterValveOpen(@Argument(description="true(open)/false(close)") boolean openValve) throws VacuumException
heaterId - The heater IDopenValve - (true/false)VacuumException@Command(type=ACTION, description="Gets the heater level") public double getHeaterLevel(@Argument(description="heater ID") int heaterId) throws VacuumException
heaterId - The heater IDVacuumException@Command(type=ACTION, description="Gets the VTC control current") public double getWaterValveControlCurrent() throws VacuumException
VacuumException@Command(type=ACTION, description="Enable/disable alert response") public void enableAlertResponse(boolean enable)
@Command(type=QUERY, description="Get true/false if the alert response is enabled") public boolean isAlertResponseEnabled()
@Command(type=ACTION, description="Enable/disable vacuum monitoring VAT shutting action") public void setMonAlertEnabledVATShut(boolean enable)
@Command(type=QUERY, description="Get true/false if the alert response is enabled") public boolean isMonAlertEnabledVATShut()
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="Set a fan control state") public void setFanState(@Argument(description="The fan name") String name, @Argument(description="The control state") FanState state) throws VacuumException
name - The fan namestate - The state to setVacuumException@Command(type=ACTION, description="Set a fan speed") public void setFanSpeed(@Argument(description="The fan name") String name, @Argument(description="The fan speed") double speed) throws VacuumException
name - The fan namespeed - The fan speedVacuumException@Command(type=QUERY, description="Get the full state") public VacSysState getFullState()
Copyright © 2022 LSST. All rights reserved.