Lines Matching refs:value
694 double NumericSensor::conversionFormula(double value) in conversionFormula() argument
696 double convertedValue = value; in conversionFormula()
702 double NumericSensor::unitModifier(double value) in unitModifier() argument
704 return std::isnan(value) ? value : value * std::pow(10, baseUnitModifier); in unitModifier()
707 void NumericSensor::updateReading(bool available, bool functional, double value) in updateReading() argument
723 curValue = valueIntf->value(); in updateReading()
727 curValue = metricIntf->value(); in updateReading()
733 newValue = unitModifier(conversionFormula(value)); in updateReading()
739 valueIntf->value(newValue); in updateReading()
744 metricIntf->value(newValue); in updateReading()
755 valueIntf->value(std::numeric_limits<double>::quiet_NaN()); in updateReading()
759 metricIntf->value(std::numeric_limits<double>::quiet_NaN()); in updateReading()
778 valueIntf->value(std::numeric_limits<double>::quiet_NaN()); in handleErrGetSensorReading()
782 metricIntf->value(std::numeric_limits<double>::quiet_NaN()); in handleErrGetSensorReading()
786 bool NumericSensor::checkThreshold(bool alarm, bool direction, double value, in checkThreshold() argument
791 if (value >= threshold) in checkThreshold()
795 if (value < (threshold - hyst)) in checkThreshold()
802 if (value <= threshold) in checkThreshold()
806 if (value > (threshold + hyst)) in checkThreshold()
816 double value = std::numeric_limits<double>::quiet_NaN(); in updateThresholds() local
828 value = valueIntf->value(); in updateThresholds()
832 value = metricIntf->value(); in updateThresholds()
840 checkThreshold(alarm, true, value, threshold, hysteresis); in updateThresholds()
846 thresholdWarningIntf->warningHighAlarmAsserted(value); in updateThresholds()
850 thresholdWarningIntf->warningHighAlarmDeasserted(value); in updateThresholds()
860 checkThreshold(alarm, false, value, threshold, hysteresis); in updateThresholds()
866 thresholdWarningIntf->warningLowAlarmAsserted(value); in updateThresholds()
870 thresholdWarningIntf->warningLowAlarmDeasserted(value); in updateThresholds()
881 checkThreshold(alarm, true, value, threshold, hysteresis); in updateThresholds()
887 thresholdCriticalIntf->criticalHighAlarmAsserted(value); in updateThresholds()
891 thresholdCriticalIntf->criticalHighAlarmDeasserted(value); in updateThresholds()
902 checkThreshold(alarm, false, value, threshold, hysteresis); in updateThresholds()
908 thresholdCriticalIntf->criticalLowAlarmAsserted(value); in updateThresholds()
912 thresholdCriticalIntf->criticalLowAlarmDeasserted(value); in updateThresholds()
930 auto value = unitModifier(conversionFormula(rawValue)); in triggerThresholdEvent() local
933 "TID", eventType, "SID", direction, "VAL", value, "PSTATE", newAlarm, in triggerThresholdEvent()
958 thresholdWarningIntf->warningHighAlarmAsserted(value); in triggerThresholdEvent()
962 thresholdWarningIntf->warningHighAlarmDeasserted(value); in triggerThresholdEvent()
976 thresholdWarningIntf->warningLowAlarmAsserted(value); in triggerThresholdEvent()
980 thresholdWarningIntf->warningLowAlarmDeasserted(value); in triggerThresholdEvent()
1005 thresholdCriticalIntf->criticalHighAlarmAsserted(value); in triggerThresholdEvent()
1009 thresholdCriticalIntf->criticalHighAlarmDeasserted(value); in triggerThresholdEvent()
1023 thresholdCriticalIntf->criticalLowAlarmAsserted(value); in triggerThresholdEvent()
1027 thresholdCriticalIntf->criticalLowAlarmDeasserted(value); in triggerThresholdEvent()