public class Compressor extends Object implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Class and Description |
|---|---|
static class |
Compressor.SwCondData |
static interface |
Compressor.SwitchDevice |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.lsst.ccs.monitor.Channel> |
channelMap |
protected String |
cmprPowerChan |
protected static String |
COMP_LIMITS
Constants.
|
protected Compressor.SwCondData[] |
condData |
protected org.lsst.ccs.monitor.Channel |
discPress |
protected String |
discPressChan |
protected org.lsst.ccs.monitor.Channel |
discTemp |
protected String |
discTempChan |
protected boolean |
gotCommand |
protected CompLimits.LimitData[] |
limitData |
protected CompMaq20Device |
maq20Devc |
protected CompPlutoDevice |
plutoDevc |
protected CompState |
state |
protected boolean |
stateChanged |
protected String |
suctTempChan |
protected int[] |
switchChannels |
protected Compressor.SwitchDevice[] |
switchDevices |
| Constructor and Description |
|---|
Compressor(CompState state)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
areEqual(double value1,
double value2)
Compares two numbers for equality, accounting for possible NaNs.
|
void |
clearIgnoreVacuumBad()
Command to clear ignoring a bad vacuum.
|
int |
getIndex()
Gets the compressor index.
|
CompState |
getState()
Gets the compressor state.
|
List<String> |
getSwitchNames()
Command to get the valid switch names.
|
void |
init()
Registers the possible alerts.
|
void |
postInit()
Initializes the compressor control.
|
void |
postStart()
Starts the compressor control.
|
void |
resetLatches()
Command to reset the latches.
|
void |
setIgnoreVacuumBad(double mins)
Command to set to ignore a bad vacuum.
|
void |
setIndex(int index)
Sets the compressor index.
|
void |
setPlateTempLow(boolean on)
Sets whether the plate temperature is too low.
|
protected void |
setSwitch(int sw,
boolean on)
Turns a switch on or off..
|
void |
setSwitchOn(String swName,
boolean on)
Command to turn a (named) switch on or off..
|
void |
setVacuumBad(boolean on)
Sets whether the vacuum is bad.
|
protected boolean |
updateState()
Updates the compressor state.
|
boolean |
updateSystem()
Updates the compressor system.
|
protected static final String COMP_LIMITS
@LookupField(strategy=CHILDREN) protected CompPlutoDevice plutoDevc
@LookupField(strategy=CHILDREN) protected CompMaq20Device maq20Devc
@LookupField(strategy=DESCENDANTS) protected final Map<String,org.lsst.ccs.monitor.Channel> channelMap
protected String discPressChan
protected String discTempChan
protected String suctTempChan
protected String cmprPowerChan
protected final CompState state
protected final Compressor.SwitchDevice[] switchDevices
protected final int[] switchChannels
protected org.lsst.ccs.monitor.Channel discPress
protected org.lsst.ccs.monitor.Channel discTemp
protected boolean gotCommand
protected boolean stateChanged
protected CompLimits.LimitData[] limitData
protected final Compressor.SwCondData[] condData
public Compressor(CompState state)
state - The compressor state objectpublic void init()
init 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.HasLifecyclepublic void setIndex(int index)
index - The index valuepublic int getIndex()
@Command(type=QUERY, description="Get the valid switch names", level=0) public List<String> getSwitchNames()
@Command(type=ACTION, description="Set a compressor\'s switch state") public void setSwitchOn(@Argument(description="Switch name") String swName, @Argument(description="Whether to turn on") boolean on) throws RefrigException
swName - The switch nameon - Whether to turn onRefrigException@Command(type=ACTION, description="Reset a compressor\'s latches") public void resetLatches()
@Command(type=ACTION, description="Set to ignore a bad vacuum") public void setIgnoreVacuumBad(@Argument(description="Duration of ignore state (minutes)",defaultValue="10") double mins)
mins - The time (minutes) the ignore state is to last@Command(type=ACTION, description="Clear ignoring a bad vacuum") public void clearIgnoreVacuumBad()
public boolean updateSystem()
public CompState getState()
public void setPlateTempLow(boolean on)
on - Whether low condition is setpublic void setVacuumBad(boolean on)
on - Whether low condition is setprotected boolean updateState()
protected void setSwitch(int sw,
boolean on)
throws RefrigException
sw - The switch IDon - Whether to turn onRefrigExceptionprotected boolean areEqual(double value1,
double value2)
value1 - First valuevalue2 - Second valueCopyright © 2024 LSST. All rights reserved.