Class IconTimeBasedWeatherValueFactory
java.lang.Object
edu.ie3.datamodel.io.factory.Factory<V,D,TimeBasedValue<V>>
edu.ie3.datamodel.io.factory.timeseries.TimeBasedValueFactory<TimeBasedWeatherValueData,WeatherValue>
edu.ie3.datamodel.io.factory.timeseries.TimeBasedWeatherValueFactory
edu.ie3.datamodel.io.factory.timeseries.IconTimeBasedWeatherValueFactory
Factory implementation of
TimeBasedWeatherValueFactory
, that is able to handle field to
value mapping in the column scheme, ie3 uses to store it's data from German Federal
Weather Service's ICON-EU model-
Field Summary
Fields inherited from class edu.ie3.datamodel.io.factory.timeseries.TimeBasedWeatherValueFactory
COORDINATE_ID, TIME, timeUtil, UUID
-
Constructor Summary
ConstructorDescriptionIconTimeBasedWeatherValueFactory
(edu.ie3.util.TimeUtil timeUtil) IconTimeBasedWeatherValueFactory
(String timePattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected TimeBasedValue<WeatherValue>
Builds model with data from givenFactoryData
object.Returns list of sets of attribute names that the entity requires to be built.Return the field name for the date timeMethods inherited from class edu.ie3.datamodel.io.factory.timeseries.TimeBasedWeatherValueFactory
getCoordinateIdFieldString
Methods inherited from class edu.ie3.datamodel.io.factory.Factory
expandSet, get, getFieldsString, getSupportedClasses, newSet, validateParameters
-
Constructor Details
-
IconTimeBasedWeatherValueFactory
public IconTimeBasedWeatherValueFactory(edu.ie3.util.TimeUtil timeUtil) -
IconTimeBasedWeatherValueFactory
-
IconTimeBasedWeatherValueFactory
public IconTimeBasedWeatherValueFactory()
-
-
Method Details
-
getTimeFieldString
Description copied from class:TimeBasedWeatherValueFactory
Return the field name for the date time- Specified by:
getTimeFieldString
in classTimeBasedWeatherValueFactory
- Returns:
- the field name for the date time
-
getFields
Description copied from class:Factory
Returns list of sets of attribute names that the entity requires to be built. At least one of these sets needs to be delivered for entity creation to be successful.- Specified by:
getFields
in classFactory<WeatherValue,
TimeBasedWeatherValueData, TimeBasedValue<WeatherValue>> - Parameters:
data
- EntityData (or subclass) containing the data- Returns:
- list of possible attribute sets
-
buildModel
Description copied from class:Factory
Builds model with data from givenFactoryData
object. ThrowsFactoryException
if something goes wrong.- Specified by:
buildModel
in classFactory<WeatherValue,
TimeBasedWeatherValueData, TimeBasedValue<WeatherValue>> - Parameters:
data
-FactoryData
(or subclass) containing the data- Returns:
- model created from data
-