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_SWITCH
Constants.
|
static int |
TYPE_TEMP
Constants.
|
static int |
TYPE_UNKNOWN
Constants.
|
static int |
TYPE_VOLTS
Constants.
|
| Constructor and Description |
|---|
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)
Constructor.
|
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)
Constructor.
|
| 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.
|
void |
setLimitHi(double limit)
Sets the high limit.
|
void |
setLimitLo(double limit)
Sets the low limit.
|
getChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalias, change, getCheckedValueFromConfiguration, getComponentByName, getFullPath, getName, getParent, getParentObject, getSubsystem, init, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, proceduralWalk, setBulkParameter, shutdownNow, start, submitChange, submitChanges, treeWalk, 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_DIFF
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(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.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.@ConfigChanger public void setLimitLo(double limit)
limit - The low limit value to set.@ConfigChanger public void setLimitHi(double limit)
limit - The high limit value to set.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.public double getValue()
public long getTimestamp()
public int getState()
Copyright © 2015 LSST. All rights reserved.