
public class ThermalMain extends Object 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() |
| 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 refrigeration subsystem.
|
void |
disconnected(org.lsst.ccs.bus.data.AgentInfo... agents)
Listens for the departure of the refrigeration subsystem.
|
void |
enableColdSection(int section,
boolean enable)
Enables/disables a cold trim heater section.
|
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 |
setAuxHeaterPower(int htr,
double value)
Sets an aux heater power value.
|
void |
setAuxHeaterState(int htr,
int value)
Sets an aux heater state.
|
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,
int value)
Sets a trim heater state.
|
void |
setUpdatePeriod(int value)
Sets the monitor update period.
|
clone, 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.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") public ThermalState getSystemState()
@Command(type=ACTION, description="Set the tick interval") public void setUpdatePeriod(int value)
value - The period (milliseconds) to set.@Command(type=ACTION, description="Enables/disables a cold trim heater section") public void enableColdSection(int section, boolean enable)
section - The cold section (y-minus or y-plus)enable - Whether to enable@Command(type=ACTION, description="Set a trim heater state") public void setTrimHeaterState(int htr, int value) throws RefrigException
htr - The heater numbervalue - The heater control state to set: 0 = off; > 0 = manual;
< 0 = automatic (temp loop).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.RefrigException@Command(type=ACTION, description="Set an aux heater power enabled state") public void setAuxHeaterState(int htr, int value) throws RefrigException
htr - The heater numbervalue - The enabled state value to set: 0 = off, ~0 = on.RefrigException@Command(type=ACTION, description="Set an aux heater power set point") public void setAuxHeaterPower(int htr, double value) throws RefrigException
htr - The heater numbervalue - The power 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.ClearAlertHandleralert - The Alert instance to clear.alertState - The AlertState for the provided Alert.Copyright © 2019 LSST. All rights reserved.