Class CosmoTimeBasedWeatherValueFactory
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.CosmoTimeBasedWeatherValueFactory
Factory implementation of
TimeBasedWeatherValueFactory, that is able to handle field to
value mapping in the typical PowerSystemDataModel (PSDM) column scheme-
Field Summary
Fields inherited from class edu.ie3.datamodel.io.factory.timeseries.TimeBasedWeatherValueFactory
COORDINATE_ID, TIME, timeUtil, UUID -
Constructor Summary
ConstructorsConstructorDescriptionCosmoTimeBasedWeatherValueFactory(edu.ie3.util.TimeUtil timeUtil) CosmoTimeBasedWeatherValueFactory(String timePattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected TimeBasedValue<WeatherValue>Builds model with data from givenFactoryDataobject.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
getCoordinateIdFieldStringMethods inherited from class edu.ie3.datamodel.io.factory.Factory
expandSet, get, getFieldsString, getSupportedClasses, newSet, validateParameters
-
Constructor Details
-
CosmoTimeBasedWeatherValueFactory
public CosmoTimeBasedWeatherValueFactory(edu.ie3.util.TimeUtil timeUtil) -
CosmoTimeBasedWeatherValueFactory
-
CosmoTimeBasedWeatherValueFactory
public CosmoTimeBasedWeatherValueFactory()
-
-
Method Details
-
getTimeFieldString
Description copied from class:TimeBasedWeatherValueFactoryReturn the field name for the date time- Specified by:
getTimeFieldStringin classTimeBasedWeatherValueFactory- Returns:
- the field name for the date time
-
getFields
Description copied from class:FactoryReturns 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:
getFieldsin classFactory<WeatherValue,TimeBasedWeatherValueData, TimeBasedValue<WeatherValue>> - Parameters:
data- EntityData (or subclass) containing the data- Returns:
- list of possible attribute sets
-
buildModel
Description copied from class:FactoryBuilds model with data from givenFactoryDataobject. ThrowsFactoryExceptionif something goes wrong.- Specified by:
buildModelin classFactory<WeatherValue,TimeBasedWeatherValueData, TimeBasedValue<WeatherValue>> - Parameters:
data-FactoryData(or subclass) containing the data- Returns:
- model created from data
-