Class TemperatureRunningAverageChannel
java.lang.Object
org.lsst.ccs.monitor.Channel
org.lsst.ccs.monitor.DerivedChannel
org.lsst.ccs.subsystem.focalplane.TemperatureRunningAverageChannel
- All Implemented Interfaces:
org.lsst.ccs.config.ConfigurationBulkChangeHandler,org.lsst.ccs.config.HasConfigurationParameterDescription,org.lsst.ccs.framework.HasLifecycle,org.lsst.ccs.StateChangeListener
public class TemperatureRunningAverageChannel
extends org.lsst.ccs.monitor.DerivedChannel
implements org.lsst.ccs.StateChangeListener
A DerivedChannel that keeps a running average of the provided list of
channels.
Configuration parameter temperatureNames contains the list of the temperature
channels to be used in evaluating the running average. The names are meant to be
those of SIBLING channels; this means that only the leaf name should be provided (Temp6, Temp10).
To start the evaluation of the running average invoke method startAveraging; to stop
the evaluation, invoke endAveraging.
When the evaluation is stopped the channel publishes Double.NaN.
- Author:
- The LSST CCS Team
-
Field Summary
FieldsFields inherited from class org.lsst.ccs.monitor.Channel
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublevoidinit()voidstateChanged(org.lsst.ccs.utilities.taitime.CCSTimeStamp stateTransitionTimestamp, Object changedObj, Enum<?> newState, Enum<?> oldState) voidvalidateBulkChange(Map<String, Object> params) Methods inherited from class org.lsst.ccs.monitor.Channel
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, readValue, setParameterBulkMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lsst.ccs.framework.HasLifecycle
postBuild, postInit, postShutdown, postStart, shutdown, startMethods inherited from interface org.lsst.ccs.StateChangeListener
stateChanged
-
Field Details
-
temperatureNames
-
-
Constructor Details
-
TemperatureRunningAverageChannel
public TemperatureRunningAverageChannel()
-
-
Method Details
-
init
public void init()- Specified by:
initin interfaceorg.lsst.ccs.framework.HasLifecycle- Overrides:
initin classorg.lsst.ccs.monitor.Channel
-
validateBulkChange
- Specified by:
validateBulkChangein interfaceorg.lsst.ccs.config.ConfigurationBulkChangeHandler- Overrides:
validateBulkChangein classorg.lsst.ccs.monitor.Channel
-
stateChanged
public void stateChanged(org.lsst.ccs.utilities.taitime.CCSTimeStamp stateTransitionTimestamp, Object changedObj, Enum<?> newState, Enum<?> oldState) - Specified by:
stateChangedin interfaceorg.lsst.ccs.StateChangeListener
-
evaluateDerivedValue
public double evaluateDerivedValue()- Specified by:
evaluateDerivedValuein classorg.lsst.ccs.monitor.DerivedChannel
-