Class SensorRepository
- java.lang.Object
-
- com.inhousegreenhouse.ch.backend.repository.SensorRepository
-
- All Implemented Interfaces:
IRepository
public class SensorRepository extends java.lang.Object implements IRepository
Sensor repository that manage all the sensors.
-
-
Constructor Summary
Constructors Constructor Description SensorRepository(Greenhouse greenhouse, ADC adc, java.lang.String proxyUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SensorList
getGreenhouseSensors()
Get the loaded sensor listvoid
load()
Load all the sensors from the database
-
-
-
Constructor Detail
-
SensorRepository
public SensorRepository(Greenhouse greenhouse, ADC adc, java.lang.String proxyUrl)
-
-
Method Detail
-
load
public void load() throws RepositoryLoadException
Load all the sensors from the database- Specified by:
load
in interfaceIRepository
- Throws:
RepositoryLoadException
- if the repository could not be loaded.
-
getGreenhouseSensors
public SensorList getGreenhouseSensors()
Get the loaded sensor list- Returns:
- SensorList object containing all the sensors
-
-