Changes between Version 6 and Version 7 of Ticket #529, comment 8
- Timestamp:
- Mar 20, 2014, 9:53:11 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #529, comment 8
v6 v7 21 21 || `labenv/src/net/sf/basedb/labenv/LabEnvironment.java` || Singleton class that is the main entry point to the lab environment functionality. It creates an instance of class `LabEnvironmentConfiguration`, that reads configuration values from file `labenv-config.xml`. Public method `void measureAndStoreLabEnvironmentData()` uses utility class `LabSensorUtil` to measure lab environment values for configured lab sensors and store the values using utility class `LabEnvironmentStorageUtil`. || 22 22 || `labenv/src/net/sf/basedb/labenv/LabEnvironmentConfiguration.java` || Class that reads configuration values from file `labenv-config.xml` and stores them in instance variables. Configuration values for individual lab sensors are stored in a list of `LabSensorConfig` instances. Also has public methods `LabSensorConfig findByNumber(Integer number)` and `LabSensorConfig findByUrl(String url)` to obtain the configuration for a specific lab sensor. || 23 24 Lab environment data access objects: 25 26 || '''File''' || '''Description''' || 27 || `labenv/src/net/sf/basedb/labenv/dao/LabSensorConfig.java` || Class for storing lab sensor configuration values in instance variables with corresponding public accessor methods. The values stored are: `int number`, `String url`, `String name`, and `String startDate`. || 28 || `labenv/src/net/sf/basedb/labenv/dao/LabEnvironmentData.java` || Class for storing lab sensor data values in instance variables with corresponding public accessor methods. The values stored are: `String sensorUrl`, `String sensorName`, `String serialNumber`, `Date dateTime`, `long unixTime` (number of seconds since 1070-01-01 00:00:00, obtained from `dateTime`), `double temperature` (in °C), and `double humidity` (in %). ||