public class ConfiguredAverageChannel
extends org.lsst.ccs.monitor.DerivedChannel
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
chanNames |
protected List<Double> |
chanWeights |
protected boolean |
ignoreNaN |
alarmHi, alarmHiA, alarmLo, alarmLoA, checkHi, checkLo, description, devcName, doNotPublish, doNotTrend, format, hwChan, hysteresis, limitHi, limitLo, offset, pageId, scale, subtype, type, TYPE_DIFF, TYPE_POWER, TYPE_PROD, TYPE_QUOT, TYPE_SUM, TYPE_SWITCH, TYPE_TEMP, TYPE_UNKNOWN, TYPE_VOLTS, typeI, units, warnHi, warnLo| Constructor and Description |
|---|
ConfiguredAverageChannel() |
| Modifier and Type | Method and Description |
|---|---|
double |
evaluateDerivedValue()
Evaluate weighted average of specified channel values.
|
void |
setParameterBulk(Map<String,Object> params)
Set configuration parameters to new values.
|
void |
validateBulkChange(Map<String,Object> params)
Checks validity of a proposed set of ConfigurationParameters
The Channel name and weight arrays must have same length,.
|
build, convertRawValue, getConfigurationParameterDescription, getDescription, getDevice, getFormat, getGroup, getHwChan, getHysteresisLimitHi, getHysteresisLimitLo, getHysteresisWarnHi, getHysteresisWarnLo, getId, getLastMeasurement, getLimitHi, getLimitLo, getName, getPageId, getPath, getSubType, getSubTypeStr, getType, getTypeStr, getUnits, getValue, getWarnHi, getWarnLo, hasHysteresis, init, readValue@ConfigurationParameter(name="chanNames",
category="General",
description="Path regular expression to select the Channels to be averaged",
maxLength=25,
units="unitless")
protected volatile List<String> chanNames
@ConfigurationParameter(name="chanWeights",
category="General",
description="Weights of Channels to be averaged",
maxLength=25,
units="unitless")
protected volatile List<Double> chanWeights
@ConfigurationParameter(name="ignoreNaN",
category="General",
isFinal=true,
units="unitless",
description="if true ignore (omit) NaN channels")
protected volatile boolean ignoreNaN
public void validateBulkChange(Map<String,Object> params)
validateBulkChange in interface org.lsst.ccs.config.ConfigurationBulkChangeHandlervalidateBulkChange in class org.lsst.ccs.monitor.ChannelMap - of ConfigurationParameters from name to valuepublic void setParameterBulk(Map<String,Object> params)
setParameterBulk in interface org.lsst.ccs.config.ConfigurationBulkChangeHandlersetParameterBulk in class org.lsst.ccs.monitor.ChannelMap - of parameters for which a change is requested,
keyed by namespublic double evaluateDerivedValue()
evaluateDerivedValue in class org.lsst.ccs.monitor.DerivedChannelCopyright © 2024 LSST. All rights reserved.