Class CosmoIdCoordinateFactory
java.lang.Object
edu.ie3.datamodel.io.factory.Factory<org.apache.commons.lang3.tuple.Pair,SimpleFactoryData,org.apache.commons.lang3.tuple.Pair<Integer,org.locationtech.jts.geom.Point>>
edu.ie3.datamodel.io.factory.timeseries.IdCoordinateFactory
edu.ie3.datamodel.io.factory.timeseries.CosmoIdCoordinateFactory
Factory, that is able to build coordinate id to coordinate mapping from German Federal Weather
Service's COSMO model
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.lang3.tuple.Pair<Integer,
org.locationtech.jts.geom.Point> buildModel
(SimpleFactoryData data) Builds model with data from givenFactoryData
object.getFields
(SimpleFactoryData data) Returns list of sets of attribute names that the entity requires to be built.Methods inherited from class edu.ie3.datamodel.io.factory.Factory
expandSet, get, getFieldsString, getSupportedClasses, newSet, validateParameters
-
Constructor Details
-
CosmoIdCoordinateFactory
public CosmoIdCoordinateFactory()
-
-
Method Details
-
buildModel
protected org.apache.commons.lang3.tuple.Pair<Integer,org.locationtech.jts.geom.Point> buildModel(SimpleFactoryData data) Description copied from class:Factory
Builds model with data from givenFactoryData
object. ThrowsFactoryException
if something goes wrong.- Specified by:
buildModel
in classFactory<org.apache.commons.lang3.tuple.Pair,
SimpleFactoryData, org.apache.commons.lang3.tuple.Pair<Integer, org.locationtech.jts.geom.Point>> - Parameters:
data
-FactoryData
(or subclass) containing the data- Returns:
- model created from data
-
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<org.apache.commons.lang3.tuple.Pair,
SimpleFactoryData, org.apache.commons.lang3.tuple.Pair<Integer, org.locationtech.jts.geom.Point>> - Parameters:
data
- EntityData (or subclass) containing the data- Returns:
- list of possible attribute sets
-
getIdField
- Specified by:
getIdField
in classIdCoordinateFactory
- Returns:
- the field id for the coordinate id
-
getLatField
- Specified by:
getLatField
in classIdCoordinateFactory
- Returns:
- the field id for the coordinate latitude
-
getLonField
- Specified by:
getLonField
in classIdCoordinateFactory
- Returns:
- the field id for the coordinate longitude
-