public class Channel
extends org.lsst.ccs.framework.ConfigurableComponent
| Modifier and Type | Field and Description |
|---|---|
static int |
STATE_ERROR |
static int |
STATE_GOOD |
static int |
STATE_OFFLINE |
static int |
STATE_WARNING |
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.
|
| Constructor and Description |
|---|
Channel()
Constructor.
|
Channel(String desc,
String unit,
String devName,
int chan,
String type,
String subtype,
double offs,
double scal,
String checkLo,
double limLo,
double deadbandLo,
String alarmLo,
String checkHi,
double limHi,
double deadbandHi,
String alarmHi)
Deprecated.
|
Channel(String desc,
String fmt,
String unit,
String devName,
int chan,
String type,
String subtype,
double offs,
double scal,
String checkLo,
double limLo,
double deadbandLo,
String alarmLo,
String checkHi,
double limHi,
double deadbandHi,
String alarmHi)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableAlarm(boolean isLow,
boolean enable)
Enables or disables an alarm.
|
int |
getState()
Gets the channel state.
|
long |
getTimestamp()
Gets the channel timestamp.
|
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 |
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.
|
getChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getComponentByName, getName, getParent, getParentObject, getSubmittedChanges, getSubsystem, init, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangepublic 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
public Channel()
@Deprecated public Channel(String desc, String fmt, String unit, String devName, int chan, String type, String subtype, double offs, double scal, String checkLo, double limLo, double deadbandLo, String alarmLo, String checkHi, double limHi, double deadbandHi, String alarmHi)
desc - The descriptive name of the channel.fmt - The format string for displaying the value.unit - The units name for the channel.devName - The name of the device containing the channel.chan - The hardware channel number of the channel.type - The type of the channel.subtype - The sub-type of the channel.offs - The offset to be applied to the read value.scal - The scale factor for the read value.checkLo - The type of check against the low limit.limLo - The low limit value.deadbandLo - The low limit deadband value.alarmLo - The name of the alarm for the low limit.checkHi - The type of check against the high limit.limHi - The high limit value.deadbandHi - The high limit deadband value.alarmHi - The name of the alarm for the high limit.@Deprecated public Channel(String desc, String unit, String devName, int chan, String type, String subtype, double offs, double scal, String checkLo, double limLo, double deadbandLo, String alarmLo, String checkHi, double limHi, double deadbandHi, String alarmHi)
desc - The descriptive name of the channel.unit - The units name for the channel.devName - The name of the device containing the channel.chan - The hardware channel number of the channel.type - The type of the channel.subtype - The sub-type of the channel.offs - The offset to be applied to the read value.scal - The scale factor for the read value.checkLo - The type of check against the low limit.limLo - The low limit value.deadbandLo - The low limit deadband value.alarmLo - The name of the alarm for the low limit.checkHi - The type of check against the high limit.limHi - The high limit value.deadbandHi - The high limit deadband value.alarmHi - The name of the alarm for the high limit.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 double getValue()
public long getTimestamp()
public int getState()
public void setValid(boolean isValid)
isValid - Value to setpublic double readValue()
Copyright © 2016 LSST. All rights reserved.