
public class ThermalMain extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.monitor.Monitor.AlarmHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
ALARM_COLD_HEATER
Constants.
|
static int |
ALARM_CRYO_HEATER
Constants.
|
| Constructor and Description |
|---|
ThermalMain() |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Build phase
|
ThermalState |
getSystemState()
Gets the state of the thermal control system.
|
void |
loadNamedConfig(String name)
Loads a named refrigeration configuration.
|
void |
postInit()
Initializes the thermal subsystem.
|
void |
postStart()
Starts the subsystem.
|
boolean |
processAlarm(int event,
int parm,
String cause,
String name)
Handles alarm events.
|
void |
saveNamedConfig(String name)
Saves a named refrigeration configuration.
|
void |
setAlarmDisabled(int value)
Sets the alarm disabled state on or off.
|
void |
setHeaterControl(int heater,
int value)
Sets the heater control state.
|
void |
setHeaterPower(int heater,
double value)
Sets the heater power value.
|
void |
setHeaterPowerEnable(int heater,
int value)
Sets the heater power enable state.
|
void |
setPlateTemp(int heater,
double value)
Sets the plate temperature value.
|
void |
setUpdatePeriod(int value)
Sets the monitor update period.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, postBuild, postShutdown, shutdown, startpublic static final int ALARM_COLD_HEATER
public static final int ALARM_CRYO_HEATER
public 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 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.public boolean processAlarm(int event,
int parm,
String cause,
String name)
processAlarm in interface org.lsst.ccs.monitor.Monitor.AlarmHandlerevent - The event typeparm - The event parametercause - The alarm causename - The alarm name@Command(type=ACTION,
description="Set the heater power enabled state")
public void setHeaterPowerEnable(int heater,
int value)
heater - The heater numbervalue - The enabled state value to set: 0 = off, ~0 = on.@Command(type=ACTION,
description="Set the heater control state")
public void setHeaterControl(int heater,
int value)
heater - The heater numbervalue - The heater power state to set: 0 = off; > 0 = manual;
< 0 = automatic (temp loop).@Command(type=ACTION,
description="Set the load trip enabled state")
public void setAlarmDisabled(int value)
value - The alarm disabled state value to set: 0 = off; ~0 = on.@Command(type=ACTION,
description="Set the heater power set point")
public void setHeaterPower(int heater,
double value)
heater - The heater numbervalue - The load power set point.@Command(type=ACTION,
description="Set the load temperature set point")
public void setPlateTemp(int heater,
double value)
heater - The heater numbervalue - The plate temperature set point.@Command(type=ACTION,
description="Save the current configuration")
public void saveNamedConfig(String name)
throws IOException
name - The configuration nameIOException@Command(type=ACTION,
description="Load a named configuration")
public void loadNamedConfig(String name)
throws IOException
name - The configuration nameIOExceptionCopyright © 2019 LSST. All rights reserved.