
public class Subscale
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController, org.lsst.ccs.subsystem.monitor.Monitor.AlarmHandler
| Constructor and Description |
|---|
Subscale(String name,
int tickMillis,
int checkMillis,
String configName,
List cmprPowerLines,
List loadPowerLines,
String loadPowerDevc,
List alarmDsabChans,
List loadTempChans,
String tempCtrl)
Main constructor.
|
| 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 |
processAlarm(int event,
int parm)
Handles alarm events.
|
void |
saveConfig()
Saves the configuration data.
|
void |
setLoadPower(double value)
Sets the load power value.
|
void |
setLoadPowerEnable(int value)
Sets the load power state.
|
void |
setLoadTemp(double value)
Sets the load temperature value.
|
void |
setLoadTripEnable(int value)
Sets the load trip enabled state on or off.
|
void |
setMainPowerEnable(int value)
Sets the main power state.
|
void |
setTickMillis(int value)
Sets the tick period.
|
void |
startTicking()
Starts the subsystem.
|
void |
tick()
Performs periodic trending data broadcast.
|
alias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, shutdownNow, signal, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic Subscale(String name, int tickMillis, int checkMillis, String configName, List cmprPowerLines, List loadPowerLines, String loadPowerDevc, List alarmDsabChans, List loadTempChans, String tempCtrl)
name - The subsystem name.tickMillis - The tick period (ms).checkMillis - The hardware check period (ms).configName - The name of the configuration.cmprPowerLines - The names of the compressor power lines.loadPowerLines - The names of the load power lines.loadPowerDevc - The name of the load power device.alarmDsabChans - The names of the channels whose alarms are to
be disabled during cool-down.loadTempChans - The names of the load temperature channels.tempCtrl - The name of the temperature controller.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 startTicking()
startTicking in class org.lsst.ccs.framework.Modulepublic 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 the main power enabled state") public void setMainPowerEnable(int value)
value - The enabled state value to set: 0 = off,
> 0 = fully on, < 0 = heat load only.@Command(type=ACTION, description="Set the load power enabled state") public void setLoadPowerEnable(int value)
value - The load power state to set: 0 = off; > 0 = manual;
< 0 = automatic (temp loop).@Command(type=ACTION, description="Set the load trip enabled state") public void setLoadTripEnable(int value)
value - The load trip enabled state value to set: 0 = off;
~0 = on.@Command(type=ACTION, description="Set the load power set point") public void setLoadPower(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 saveConfig() throws IOException
IOException@Command(type=QUERY, description="Get the full refrigeration state") public RefrigFullState getFullState()
Copyright © 2016 LSST. All rights reserved.