
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 String |
cmprPowerChan |
protected String |
discPressChan |
protected String |
discTempChan |
protected boolean |
gotCommand |
protected String |
liquidTempChan |
protected CompMaq20Device |
maq20Devc |
protected String |
phaseSepTempChan |
protected String |
suctPressChan |
protected String |
suctTempChan |
| 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.
|
org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode |
canClearAlert(org.lsst.ccs.bus.data.Alert alert)
Enables an alert to be cleared.
|
int |
getIndex()
Gets the compressor index.
|
CompState |
getState()
Gets the compressor state.
|
List<String> |
getSwitchNames()
Command to get the valid switch names.
|
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 |
setDiscPressDelayTime(int value)
Sets the discharge pressure delay.
|
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 |
setDiscTempLowImmedLimit(double value)
Sets the discharge temperature low immediate limit.
|
void |
setIndex(int index)
Sets the compressor index.
|
void |
setLiquidTempDelayLimit(double value)
Sets the liquid temperature delayed limit.
|
void |
setLiquidTempDelayTime(int value)
Sets the liquid temperature delay.
|
void |
setLiquidTempImmedLimit(double value)
Sets the liquid temperature immediate limit.
|
void |
setPhaseSepTempDelayLimit(double value)
Sets the phase separator temperature delayed limit.
|
void |
setPhaseSepTempDelayTime(int value)
Sets the phase separator temperature delay.
|
void |
setPressDiffImmedLimit(double value)
Sets the discharge pressure difference immediate limit.
|
void |
setSuctTempImmedLimit(double value)
Sets the suction temperature immediate limit.
|
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.
|
@LookupField(strategy=CHILDREN) protected CompMaq20Device maq20Devc
protected String discPressChan
protected String discTempChan
protected String suctPressChan
protected String suctTempChan
protected String cmprPowerChan
protected String phaseSepTempChan
protected String liquidTempChan
protected boolean gotCommand
public Compressor(CompState state)
state - The compressor state objectpublic 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 setDiscPressDelayTime(int 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 set@ConfigurationParameterChanger public void setLiquidTempImmedLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setLiquidTempDelayLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setLiquidTempDelayTime(int value)
value - The value to set@ConfigurationParameterChanger public void setPhaseSepTempDelayLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setPhaseSepTempDelayTime(int value)
value - The value to set@ConfigurationParameterChanger public void setDiscTempLowImmedLimit(double value)
value - The value to set@ConfigurationParameterChanger public void setPressDiffImmedLimit(double 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()
public org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode canClearAlert(org.lsst.ccs.bus.data.Alert alert)
alert - The alertprotected boolean areEqual(double value1,
double value2)
value1 - First valuevalue2 - Second valueCopyright © 2021 LSST. All rights reserved.