Lines Matching full:thresholds

6 #include "Thresholds.hpp"
62 std::vector<thresholds::Threshold>&& thresholdData, in Sensor()
71 minValue(min), thresholds(std::move(thresholdData)), in Sensor()
94 std::vector<thresholds::Threshold> thresholds; member
117 using Level = thresholds::Level;
118 using Direction = thresholds::Direction;
121 thresholds::thresProp.size()>
236 // check thresholds for external set in setSensorValue()
275 for (auto& threshold : thresholds) in setInitialProperties()
301 label.empty() ? thresholds.size() : thresholdSize; in setInitialProperties()
307 thresholds::persistThreshold( in setInitialProperties()
311 // so new thresholds will be checked during next update, in setInitialProperties()
388 for (const thresholds::ThresholdDefinition& prop : in propertyLevel()
389 thresholds::thresProp) in propertyLevel()
408 for (const thresholds::ThresholdDefinition& prop : in propertyAlarm()
409 thresholds::thresProp) in propertyAlarm()
493 for (auto& threshold : thresholds) in updateValue()
505 // Always check thresholds after changing the value, in updateValue()
507 // the thresholds::checkThresholds() method, in updateValue()
509 // in all current implementations of sensors that have thresholds. in updateValue()
547 // If one of the thresholds for a dbus interface is provided
552 const std::size_t thresholdsLen = thresholds.size(); in fillMissingThresholds()
555 const thresholds::Threshold& thisThreshold = thresholds[index]; in fillMissingThresholds()
557 thresholds::Direction opposite = thresholds::Direction::HIGH; in fillMissingThresholds()
558 if (thisThreshold.direction == thresholds::Direction::HIGH) in fillMissingThresholds()
560 opposite = thresholds::Direction::LOW; in fillMissingThresholds()
562 for (thresholds::Threshold& otherThreshold : thresholds) in fillMissingThresholds()
579 thresholds.emplace_back(thisThreshold.level, opposite, in fillMissingThresholds()