Class SensorController
- java.lang.Object
-
- com.inhousegreenhouse.ch.backend.controller.SensorController
-
public class SensorController extends java.lang.Object
Controller for the sensors.
-
-
Constructor Summary
Constructors Constructor Description SensorController(Greenhouse greenhouse, java.util.Properties settings)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SensorList
getSensors()
Get the list of available sensors.
-
-
-
Constructor Detail
-
SensorController
public SensorController(Greenhouse greenhouse, java.util.Properties settings) throws SpiCannotBeInitializedException
Constructor.- Parameters:
greenhouse
- Greenhouse where the sensors are attached.settings
- The loaded greenhouse settings.- Throws:
SpiCannotBeInitializedException
- If the SPI interface, needed to read the sensors, cannot be initialized.
-
-
Method Detail
-
getSensors
public SensorList getSensors()
Get the list of available sensors.- Returns:
- List of sensors as a SensorList object.
-
-