optris::sdk::Limits
The limits one band is evaluated against.
In the unit of the quantity the rule's input carries (see SignalValue). For a temperature input low and high are temperatures in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit), and hysteresis, delta and epsilon are differences in degrees of that unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit). For a rule with a reference (RuleEngine::SetReference()) the input is an offset, so all five are differences. The SDK keeps a limit in Celsius, so one set before a unit switch keeps its meaning and reads back in the new unit.
Public attributes
low
float low = 0.0F
The lower limit, in the input signal's own unit -- the SDK's temperature unit for a temperature field, region-space coordinates for kHotSpotX and kHotSpotY (RegionStats::max_loc), a plain count for kArea. Read by kBelow, kOutside and kInside only. The other comparisons ignore it, so leaving it at 0 on a kAbove rule is correct rather than an omission.
high
float high = 0.0F
The upper limit, in the same unit as low. Read by kAbove, kOutside and kInside, and -- less obviously -- by kEqual, where it is the target value that epsilon is a tolerance around rather than a bound. kChanged and kInvalid read neither limit.
Comparisons are made in float even though a signal value is a double: the value is narrowed first, so a limit is never more precise than a float and a double signal is not compared at double precision.
hysteresis
float hysteresis = 0.0F
Release deadband. The value must come back this far past the limit before the band drops, which is what stops an alarm chattering on a value sitting exactly on its threshold.
delta
float delta = 0.0F
kChanged only: the smallest change that counts as a change.
epsilon
float epsilon = 0.0F
kEqual only: the tolerance around high.