
public class Compressor
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.framework.HardwareController, org.lsst.ccs.subsystem.monitor.Monitor.AlarmHandler
| Constructor and Description |
|---|
Compressor() |
Compressor(String name,
int tickMillis,
int monMillis,
int checkMillis,
String compPowerLine,
String heaterPowerLine,
String resetLine)
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 |
postStart()
Starts the subsystem.
|
void |
processAlarm(int event,
int parm)
Handles alarm events.
|
void |
reset()
Resets the latches.
|
void |
setCompPowerEnable(int value)
Sets the compressor power state.
|
void |
setHeaterPowerEnable(int value)
Sets the heater power state.
|
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 Compressor(String name, int tickMillis, int monMillis, int checkMillis, String compPowerLine, String heaterPowerLine, String resetLine)
name - The subsystem name.tickMillis - The tick period (ms).monMillis - The monitor period (ms).checkMillis - The hardware check period (ms).compPowerLine - The name of the compressor power line.heaterPowerLine - The name of the heater power line.resetLine - The name of the PLC reset linepublic Compressor()
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 the main power enabled state") public void setCompPowerEnable(int value)
value - The enabled state value to set: 0 = off,
not 0 = on.@Command(type=ACTION, description="Set the heater power enabled state") public void setHeaterPowerEnable(int value)
value - The heater power state to set: 0 = off; not 0 = on.@Command(type=ACTION, description="Reset the latches") public void reset()
@Command(type=QUERY, description="Get the full refrigeration state") public RefrigFullState getFullState()
Copyright © 2016 LSST. All rights reserved.