
public class Channel extends Object
| 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 |
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.
|
String |
getAlarmNameHi()
Gets the channel high limit alarm name.
|
String |
getAlarmNameLo()
Gets the channel low limit alarm name.
|
double |
getDbandHi()
Gets the channel dead band high.
|
double |
getDbandLo()
Gets the channel dead band low.
|
String |
getDescription()
Gets the channel description.
|
Device |
getDevice() |
String |
getFormat()
Gets the display format.
|
double |
getLimitHi()
Gets the channel high limit.
|
double |
getLimitLo()
Gets the channel low limit.
|
String |
getName() |
int |
getPageId()
Gets the display page ID.
|
String |
getPath() |
String |
getUnits()
Gets the channel units.
|
double |
getValue()
Gets the channel value.
|
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 |
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
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
@ConfigurationParameter(name="dbandLo", category="Limits") protected double dbandLo
protected String checkHi
protected String alarmHi
@ConfigurationParameter(name="dbandHi", category="Limits") 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 set@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.@ConfigurationParameterChanger public void setDbandLo(double value)
value - The value to set@ConfigurationParameterChanger public void setDbandHi(double value)
value - The value to setpublic Device getDevice()
public String getDescription()
public String getFormat()
public String getUnits()
public int getPageId()
public double getLimitLo()
public String getAlarmNameLo()
public double getLimitHi()
public double getDbandLo()
public double getDbandHi()
public String getAlarmNameHi()
public 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.@Command(type=QUERY) public double getValue()
public void setValid(boolean isValid)
isValid - Value to setpublic double readValue()
public String getPath()
public String getName()
Copyright © 2018 LSST. All rights reserved.