
public class RefrigMain1 extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.monitor.Monitor.AlarmHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
ALARM_ALL
Constants.
|
static int |
ALARM_HEATER
Constants.
|
| Constructor and Description |
|---|
RefrigMain1() |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Build phase
|
RefrigState1 |
getSystemState()
Gets the full state of the refrigeration module.
|
void |
loadNamedConfig(String name)
Loads a named refrigeration configuration.
|
void |
postInit()
Initializes the refrigeration 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 |
setCmprPowerEnable(int cmpr,
int value)
Sets the power state of a compressor.
|
void |
setHeaterControl(int value)
Sets the heater control state.
|
void |
setHeaterPower(double value)
Sets the heater power value.
|
void |
setHeaterPowerEnable(int value)
Sets the heater power enable state.
|
void |
setLoadTemp(double value)
Sets the load 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_HEATER
public static final int ALARM_ALL
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 full refrigeration state")
public RefrigState1 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 compressor power enabled state")
public void setCmprPowerEnable(int cmpr,
int value)
cmpr - The compressor numbervalue - The enabled state value to set: 0 = off, ~0 = on.@Command(type=ACTION,
description="Set the heater power enabled state")
public void setHeaterPowerEnable(int value)
value - The enabled state value to set: 0 = off, ~0 = on.@Command(type=ACTION,
description="Set the heater control state")
public void setHeaterControl(int value)
value - 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(double value)
value - The load power set point.@Command(type=ACTION,
description="Set the load temperature set point")
public void setLoadTemp(double value)
value - The load 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.