Lines Matching full:thresholds
6 #include "Thresholds.hpp"
71 std::vector<thresholds::Threshold>&& thresholdData, in Sensor()
80 minValue(min), thresholds(std::move(thresholdData)), in Sensor()
103 std::vector<thresholds::Threshold> thresholds; member
126 using Level = thresholds::Level;
127 using Direction = thresholds::Direction;
130 thresholds::thresProp.size()>
245 // check thresholds for external set in setSensorValue()
284 for (auto& threshold : thresholds) in setInitialProperties()
310 label.empty() ? thresholds.size() : thresholdSize; in setInitialProperties()
316 thresholds::persistThreshold( in setInitialProperties()
320 // so new thresholds will be checked during next update, in setInitialProperties()
397 for (const thresholds::ThresholdDefinition& prop : in propertyLevel()
398 thresholds::thresProp) in propertyLevel()
417 for (const thresholds::ThresholdDefinition& prop : in propertyAlarm()
418 thresholds::thresProp) in propertyAlarm()
502 for (auto& threshold : thresholds) in updateValue()
514 // Always check thresholds after changing the value, in updateValue()
516 // the thresholds::checkThresholds() method, in updateValue()
518 // in all current implementations of sensors that have thresholds. in updateValue()
556 // If one of the thresholds for a dbus interface is provided
561 const std::size_t thresholdsLen = thresholds.size(); in fillMissingThresholds()
564 const thresholds::Threshold& thisThreshold = thresholds[index]; in fillMissingThresholds()
566 thresholds::Direction opposite = thresholds::Direction::HIGH; in fillMissingThresholds()
567 if (thisThreshold.direction == thresholds::Direction::HIGH) in fillMissingThresholds()
569 opposite = thresholds::Direction::LOW; in fillMissingThresholds()
571 for (thresholds::Threshold& otherThreshold : thresholds) in fillMissingThresholds()
588 thresholds.emplace_back(thisThreshold.level, opposite, in fillMissingThresholds()