
public class Compressor extends Object implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Class and Description |
|---|---|
static class |
Compressor.LimitData |
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 org.lsst.ccs.monitor.Channel |
discPress |
protected String |
discPressChan |
protected org.lsst.ccs.monitor.Channel |
discTemp |
protected String |
discTempChan |
protected boolean |
gotCommand |
protected Compressor.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.
|
int |
getIndex()
Gets the compressor index.
|
CompState |
getState()
Gets the compressor state.
|
List<String> |
getSwitchNames()
Command to get the valid switch names.
|
void |
init() |
void |
postInit()
Initializes the compressor control.
|
void |
postStart()
Starts the compressor control.
|
void |
resetLatches()
Command to reset the latches.
|
void |
setCmprPowerDelayLimit(double value)
Sets the compressor power delayed limit.
|
void |
setCmprPowerDelayTime(int value)
Sets the compressor power delay.
|
void |
setCmprPowerImmedLimit(double value)
Sets the compressor power immediate limit.
|
void |
setDiscPressDelayLimit(double value)
Sets the discharge pressure delayed limit.
|
void |
setDiscPressImmedLimit(double value)
Sets the discharge pressure immediate limit.
|
void |
setDiscTempDelayLimit(double value)
Sets the discharge temperature delayed limit.
|
void |
setDiscTempDelayTime(int value)
Sets the discharge temperature delay.
|
void |
setDiscTempImmedLimit(double value)
Sets the discharge temperature immediate limit.
|
void |
setIndex(int index)
Sets the compressor index.
|
void |
setSuctTempImmedLimit(double value)
Sets the suction temperature immediate limit.
|
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..
|
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 final Compressor.LimitData[] limitData
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.HasLifecycle@ConfigurationParameterChanger public void setDiscPressImmedLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setDiscPressDelayLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setDiscTempImmedLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setDiscTempDelayLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setDiscTempDelayTime(int value)
value - The value to set@ConfigurationParameterChanger public void setSuctTempImmedLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setCmprPowerImmedLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setCmprPowerDelayLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setCmprPowerDelayTime(int value)
value - The value to setpublic 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()
public boolean updateSystem()
public CompState getState()
protected 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 © 2022 LSST. All rights reserved.