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
ConstructorDescriptionCosmoTimeBasedWeatherValueFactory
(edu.ie3.util.TimeUtil timeUtil) CosmoTimeBasedWeatherValueFactory
(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
-
CosmoTimeBasedWeatherValueFactory
public CosmoTimeBasedWeatherValueFactory(edu.ie3.util.TimeUtil timeUtil) -
CosmoTimeBasedWeatherValueFactory
-
CosmoTimeBasedWeatherValueFactory
public CosmoTimeBasedWeatherValueFactory()
-
-
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
-