Class SensorObserver<T extends ISensor<? extends java.lang.Number>>

  • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Method Detail

      • run

        public void run()
        Start observing the sensor.
        Specified by:
        run in interface java.lang.Runnable