Class HarvestRepository
java.lang.Object
eu.acclimatize.unison.location.harvester.HarvestRepository
A repository for storing harvested data. The repository acts as a wrapper
around the precipitation, general weather, unknown weather variable
repositories. Unknown weather variables are variables added to the harvested
end-point by the meteorological service post hoc.
-
Constructor Summary
ConstructorsConstructorDescriptionHarvestRepository(HourlyPrecipitationRepository precipitationRepository, HourlyWeatherRepository weatherRepository, UnknownWVRepository unknownWVRepository) Creates and instance of HarvestRespoitroy. -
Method Summary
Modifier and TypeMethodDescriptionvoidstore(Collection<HourlyPrecipitation> hPrecipitation, Collection<HourlyWeather> hWeather, Collection<UnknownWV> unknown) Stores weather data and data for unknown weather variables.
-
Constructor Details
-
HarvestRepository
public HarvestRepository(HourlyPrecipitationRepository precipitationRepository, HourlyWeatherRepository weatherRepository, UnknownWVRepository unknownWVRepository) Creates and instance of HarvestRespoitroy.- Parameters:
precipitationRepository- The repository for storing precipitation data.weatherRepository- The repository for storing general weather data (other than precipitation data).unknownWVRepository- The repository for storing unknown weather variable data.
-
-
Method Details
-
store
public void store(Collection<HourlyPrecipitation> hPrecipitation, Collection<HourlyWeather> hWeather, Collection<UnknownWV> unknown) Stores weather data and data for unknown weather variables.- Parameters:
hPrecipitation- A collection of precipitation data.hWeather- A collection of general weather data.unknown- A collection of data for unknown weather variables.
-