Class SensorObserver<T extends ISensor<? extends java.lang.Number>>
- java.lang.Object
-
- com.inhousegreenhouse.ch.backend.orchestrator.SensorObserver<T>
-
- Type Parameters:
T
- The type of the sensor that will be observed.
- All Implemented Interfaces:
java.lang.Runnable
public class SensorObserver<T extends ISensor<? extends java.lang.Number>> extends java.lang.Object implements java.lang.Runnable
The sensor observer is the interface that is used to observe the sensor.
-
-
Constructor Summary
Constructors Constructor Description SensorObserver(MonitoringConfig config, T sensor, java.util.Properties greenhouseSettings)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Start observing the sensor.
-
-
-
Constructor Detail
-
SensorObserver
public SensorObserver(MonitoringConfig config, T sensor, java.util.Properties greenhouseSettings)
Constructor.- Parameters:
config
- The monitoring configuration.sensor
- The sensor to observe.greenhouseSettings
- The loaded greenhouse settings.
-
-