
public class ThermalMain
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.messaging.AgentPresenceListener, org.lsst.ccs.messaging.StatusMessageListener, org.lsst.ccs.framework.ClearAlertHandler
| Constructor and Description |
|---|
ThermalMain()
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 |
connected(org.lsst.ccs.bus.data.AgentInfo... agents)
Listens for the arrival of the companion refrigeration subsystem.
|
void |
disconnected(org.lsst.ccs.bus.data.AgentInfo... agents)
Listens for the departure of the companion refrigeration subsystem.
|
ThermalState |
getSystemState()
Gets the state of the thermal control system.
|
void |
onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage msg)
Handles refrigeration status messages.
|
void |
postInit()
Initializes the thermal subsystem.
|
void |
postStart()
Starts the subsystem.
|
void |
setPlateTemperature(int htr,
double temp)
Sets a plate temperature value.
|
void |
setTrimHeaterPower(int htr,
double power)
Sets a trim heater power value.
|
void |
setTrimHeaterState(int htr,
TrimHeaterOpState state)
Sets a trim heater operation state.
|
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, waitinit, postBuild, postShutdown, shutdown, startpublic 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.HasLifecyclepublic void connected(org.lsst.ccs.bus.data.AgentInfo... agents)
connected in interface org.lsst.ccs.messaging.AgentPresenceListeneragents - Array of agents presentpublic void disconnected(org.lsst.ccs.bus.data.AgentInfo... agents)
disconnected in interface org.lsst.ccs.messaging.AgentPresenceListeneragents - Agents going absentpublic void onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage msg)
onStatusMessage in interface org.lsst.ccs.messaging.StatusMessageListenermsg - The status message@Command(type=QUERY, description="Get the thermal control state", level=0) public ThermalState getSystemState()
@Command(type=ACTION, description="Set a trim heater operation state") public void setTrimHeaterState(int htr, TrimHeaterOpState state) throws RefrigException
htr - The heater numberstate - The heater operation state to set: OFF, POWER or TEMP.RefrigException@Command(type=ACTION, description="Set a trim heater power set point") public void setTrimHeaterPower(int htr, double power) throws RefrigException
htr - The heater numberpower - The load power set point.RefrigException@Command(type=ACTION, description="Set a plate temperature set point") public void setPlateTemperature(int htr, double temp) throws RefrigException
htr - The heater numbertemp - The plate temperature set point.RefrigExceptionpublic org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode canClearAlert(org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState alertState)
Alert instance.
Return a ClearAlertCode for the provided Alert.canClearAlert in interface org.lsst.ccs.framework.ClearAlertHandlercanClearAlert in class org.lsst.ccs.Agentalert - The Alert instance to clear.alertState - The AlertState for the provided Alert.Copyright © 2021 LSST. All rights reserved.