
public class RefrigMain
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController, org.lsst.ccs.subsystem.monitor.Monitor.AlarmHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
ALARM_ALL
Constants.
|
static int |
ALARM_HEATER
Constants.
|
| Constructor and Description |
|---|
RefrigMain() |
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Initializes the hardware.
|
void |
checkStarted()
Checks whether hardware is started.
|
void |
checkStopped()
Checks whether hardware is stopped.
|
RefrigFullState |
getFullState()
Gets the full state of the refrigeration module.
|
void |
initModule()
Initializes the refrigeration subsystem.
|
void |
loadNamedConfig(String name)
Loads a named refrigeration configuration.
|
void |
postStart()
Starts the subsystem.
|
void |
processAlarm(int event,
int parm)
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 |
setTickMillis(int value)
Sets the tick period.
|
void |
tick()
Performs periodic trending data broadcast.
|
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getChildren, getComponentByName, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic static final int ALARM_HEATER
public static final int ALARM_ALL
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
checkHardware in interface org.lsst.ccs.framework.HardwareControllerpublic void checkStarted()
checkStarted in interface org.lsst.ccs.framework.HardwareControllerpublic void checkStopped()
checkStopped in interface org.lsst.ccs.framework.HardwareControllerpublic void postStart()
throws org.lsst.ccs.HardwareException
postStart in interface org.lsst.ccs.framework.ConfigurablepostStart in class org.lsst.ccs.framework.Moduleorg.lsst.ccs.HardwareExceptionpublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION, description="Set the tick interval") public void setTickMillis(int value)
setTickMillis in class org.lsst.ccs.framework.Modulevalue - The tick period (milliseconds) to set.public void processAlarm(int event,
int parm)
processAlarm in interface org.lsst.ccs.subsystem.monitor.Monitor.AlarmHandlerevent - The event typeparm - The event parameter@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 nameIOException@Command(type=QUERY, description="Get the full refrigeration state") public RefrigFullState getFullState()
Copyright © 2017 LSST. All rights reserved.