A lot of the PhysicalSensor implementations make use of a 'threshold' parameter that's used for conditionally reporting events when they're sampled from the sensor. Instead of each class implementing this logic on its own, we could easily have this be a configurable parameter in VirtualSensor so that all the others can inherit it. Furthermore, it could easily support different conditional operators other than just a 'greater than threshold' one that most use.
A lot of the PhysicalSensor implementations make use of a 'threshold' parameter that's used for conditionally reporting events when they're sampled from the sensor. Instead of each class implementing this logic on its own, we could easily have this be a configurable parameter in VirtualSensor so that all the others can inherit it. Furthermore, it could easily support different conditional operators other than just a 'greater than threshold' one that most use.