
| Modifier and Type | Field and Description |
|---|---|
protected String |
alarmHi |
protected String |
alarmLo |
protected String |
checkHi |
protected String |
checkLo |
protected double |
dbandHi |
protected double |
dbandLo |
protected String |
description
Data fields.
|
protected String |
devcName |
protected String |
format |
protected int |
hwChan |
protected double |
limitHi |
protected double |
limitLo |
protected double |
offset |
protected int |
pageId |
protected double |
scale |
static int |
STATE_ERROR |
static int |
STATE_GOOD |
static int |
STATE_OFFLINE |
static int |
STATE_WARNING |
protected String |
subtype |
protected String |
type |
static int |
TYPE_DIFF
Constants.
|
static int |
TYPE_POWER
Constants.
|
static int |
TYPE_PROD
Constants.
|
static int |
TYPE_QUOT
Constants.
|
static int |
TYPE_SUM
Constants.
|
static int |
TYPE_SWITCH
Constants.
|
static int |
TYPE_TEMP
Constants.
|
static int |
TYPE_UNKNOWN
Constants.
|
static int |
TYPE_VOLTS
Constants.
|
protected String |
units |
| Constructor and Description |
|---|
Channel() |
| Modifier and Type | Method and Description |
|---|---|
void |
enableAlarm(boolean isLow,
boolean enable)
Enables or disables an alarm.
|
double |
readValue()
Reads the value directly from the hardware.
|
void |
setDbandHi(double value)
Sets the high warning offset (formerly deadband)
|
void |
setDbandLo(double value)
Sets the low warning offset (formerly deadband)
|
void |
setDevcName(String devName)
Sets the name of the Device associated with this Channel.
|
void |
setFormat(String fmt)
Sets the format string for this Channel.
|
void |
setLimitHi(double limit)
Sets the high limit.
|
void |
setLimitLo(double limit)
Sets the low limit.
|
void |
setValid(boolean isValid)
Sets whether the channel is valid.
|
public static final int TYPE_UNKNOWN
public static final int TYPE_TEMP
public static final int TYPE_VOLTS
public static final int TYPE_POWER
public static final int TYPE_SWITCH
public static final int TYPE_SUM
public static final int TYPE_DIFF
public static final int TYPE_PROD
public static final int TYPE_QUOT
public static final int STATE_OFFLINE
public static final int STATE_GOOD
public static final int STATE_WARNING
public static final int STATE_ERROR
protected String description
protected String units
protected String devcName
protected int hwChan
protected String type
protected String subtype
protected double offset
protected double scale
protected String checkLo
protected String alarmLo
protected double dbandLo
protected String checkHi
protected String alarmHi
protected double dbandHi
protected int pageId
protected String format
@ConfigurationParameter(name="limitLo", category="Limits") protected double limitLo
@ConfigurationParameter(name="limitHi", category="Limits") protected double limitHi
public final void setFormat(String fmt)
fmt - The provided format to be setpublic final void setDevcName(String devName)
devName - The name of the Device as defined in the groovy description node.@ConfigurationParameterChanger public void setLimitLo(double limit)
limit - The low limit value to set.@ConfigurationParameterChanger public void setLimitHi(double limit)
limit - The high limit value to set.public void setDbandLo(double value)
value - The value to setpublic void setDbandHi(double value)
value - The value to setpublic void enableAlarm(boolean isLow,
boolean enable)
isLow - True for low limit alarm, false for high.enable - True to enable the alarm, false to disable it.public void setValid(boolean isValid)
isValid - Value to setpublic double readValue()
Copyright © 2017 LSST. All rights reserved.