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
Constructors -
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 givenFactoryDataobject.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:FactoryBuilds model with data from givenFactoryDataobject. ThrowsFactoryExceptionif something goes wrong.- Specified by:
buildModelin 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: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<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:
getIdFieldin classIdCoordinateFactory- Returns:
- the field id for the coordinate id
-
getLatField
- Specified by:
getLatFieldin classIdCoordinateFactory- Returns:
- the field id for the coordinate latitude
-
getLonField
- Specified by:
getLonFieldin classIdCoordinateFactory- Returns:
- the field id for the coordinate longitude
-