stella.sensor
Interface WeatherSurveying.DataBlock

All Known Implementing Classes:
WeatherStation.WeatherStationData
Enclosing interface:
WeatherSurveying

public static interface WeatherSurveying.DataBlock

A block of sensor data. Weather station collect data events from several sensors, probably measured at the same time. This interface defines retrieval routines not for individual sensors, but blocks of sensors measured at the same time.


Method Summary
 Map<String,? extends Number> getMeasures()
          Returns a mapping of sensor names to their physical measurement values.
 Date getTimeOfMeasurement()
          Returns the date of the measurement.
 boolean isClear()
          Returns as a single boolean the overall weather conditions, good or bad.
 

Method Detail

getTimeOfMeasurement

Date getTimeOfMeasurement()
Returns the date of the measurement.

Returns:
Date object of the (average) time sensor data was measured.

isClear

boolean isClear()
Returns as a single boolean the overall weather conditions, good or bad.

Returns:
True, if weather was allowing observations at that time.

getMeasures

Map<String,? extends Number> getMeasures()
Returns a mapping of sensor names to their physical measurement values.