Package edu.ie3.datamodel.io.source
Interface WeatherSource
- All Superinterfaces:
DataSource
- All Known Implementing Classes:
CouchbaseWeatherSource
,CsvWeatherSource
,InfluxDbWeatherSource
,SqlWeatherSource
Describes a data source for weather data
-
Method Summary
Modifier and TypeMethodDescriptionMap<org.locationtech.jts.geom.Point,
IndividualTimeSeries<WeatherValue>> getWeather
(edu.ie3.util.interval.ClosedInterval<ZonedDateTime> timeInterval) Return the weather for the given time intervalMap<org.locationtech.jts.geom.Point,
IndividualTimeSeries<WeatherValue>> getWeather
(edu.ie3.util.interval.ClosedInterval<ZonedDateTime> timeInterval, Collection<org.locationtech.jts.geom.Point> coordinates) Return the weather for the given time interval AND coordinatesgetWeather
(ZonedDateTime date, org.locationtech.jts.geom.Point coordinate) Return the weather for the given time date AND coordinate
-
Method Details
-
getWeather
Map<org.locationtech.jts.geom.Point,IndividualTimeSeries<WeatherValue>> getWeather(edu.ie3.util.interval.ClosedInterval<ZonedDateTime> timeInterval) Return the weather for the given time interval- Parameters:
timeInterval
- Queried time interval- Returns:
- weather data for the specified time range, sorted by coordinate
-
getWeather
Map<org.locationtech.jts.geom.Point,IndividualTimeSeries<WeatherValue>> getWeather(edu.ie3.util.interval.ClosedInterval<ZonedDateTime> timeInterval, Collection<org.locationtech.jts.geom.Point> coordinates) Return the weather for the given time interval AND coordinates- Parameters:
timeInterval
- Queried time intervalcoordinates
- Queried coordinates- Returns:
- weather data for the specified time range and coordinates, sorted by coordinate
-
getWeather
Optional<TimeBasedValue<WeatherValue>> getWeather(ZonedDateTime date, org.locationtech.jts.geom.Point coordinate) Return the weather for the given time date AND coordinate- Parameters:
date
- Queried date timecoordinate
- Queried coordinate- Returns:
- weather data for the specified time and coordinate
-