Class DayTemperatureDataFeed
- java.lang.Object
-
- io.patriot_framework.generator.dataFeed.DayTemperatureDataFeed
-
- All Implemented Interfaces:
DataFeed
public class DayTemperatureDataFeed extends Object implements DataFeed
DataFeed provides estimation of hourly temperature based on Maximum and Minimum temperature, that was measured in one day. For calculation method uses T_MIN and T_max, which are hours, where ma maximum and minimum temperature occurred within one day. With addition of dayMin and dayMax, minimal and maximal temperatures of the day. DataFeed is based on algorithm from https://www.researchgate.net/publication/245383326_New_algorithm_for_generating_hourly_temperature_values_using_daily_maximum_minimum_and_average_values_from_climate_models
-
-
Constructor Summary
Constructors Constructor Description DayTemperatureDataFeed(float dayMin, float dayMax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLabel()
Returns label for DataFeedData
getNextValue(Object... params)
Returns value from DataFeed.Data
getPreviousValue()
Returns last generated value from DataFeed.void
setLabel(String label)
Sets label for DataFeed
-
-
-
Method Detail
-
getNextValue
public Data getNextValue(Object... params)
Description copied from interface:DataFeed
Returns value from DataFeed. This method is used to compute new data. Flexibility with number of parameters aims to provide freedom in implementation of whole DataFeed.- Specified by:
getNextValue
in interfaceDataFeed
- Parameters:
params
- for DataFeed computing- Returns:
- computed value
-
getPreviousValue
public Data getPreviousValue()
Description copied from interface:DataFeed
Returns last generated value from DataFeed. Important for easy comparison between new and previous values.- Specified by:
getPreviousValue
in interfaceDataFeed
- Returns:
- last generated value
-
setLabel
public void setLabel(String label)
Description copied from interface:DataFeed
Sets label for DataFeed
-
-