public static class WeatherStation.WeatherStationData extends Object implements WeatherSurveying.DataBlock
WeatherSurveying.DataBlock class.| Modifier and Type | Field and Description |
|---|---|
private boolean |
clear
The overall weather condition.
|
private Map<String,Number> |
measures
Mapping of sensor names to sensor measurements.
|
private Date |
timeofmeasure
The date of the measurement.
|
| Constructor and Description |
|---|
WeatherStationData(Date time,
boolean good,
Map<String,Number> sensors)
Constructs a new
WeatherSurveying.DataBlock with all elements
provided. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Number> |
getMeasures()
Returns the mapping of the data.
|
Date |
getTimeOfMeasurement()
Returns the date of the measure block.
|
boolean |
isClear()
Returns true if the weather was considered clear at the measurement
time.
|
String |
toString()
Returns a readable version.
|
private final Date timeofmeasure
private final boolean clear
public WeatherStationData(Date time, boolean good, Map<String,Number> sensors)
WeatherSurveying.DataBlock with all elements
provided.public Date getTimeOfMeasurement()
getTimeOfMeasurement in interface WeatherSurveying.DataBlockpublic boolean isClear()
isClear in interface WeatherSurveying.DataBlockpublic Map<String,Number> getMeasures()
getMeasures in interface WeatherSurveying.DataBlock