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

public class CosmoIdCoordinateFactory extends IdCoordinateFactory
Factory, that is able to build coordinate id to coordinate mapping from German Federal Weather Service's COSMO model
  • 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 given FactoryData object. Throws FactoryException if something goes wrong.
      Specified by:
      buildModel in class Factory<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

      protected List<Set<String>> getFields(SimpleFactoryData data)
      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 class Factory<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

      public String getIdField()
      Specified by:
      getIdField in class IdCoordinateFactory
      Returns:
      the field id for the coordinate id
    • getLatField

      public String getLatField()
      Specified by:
      getLatField in class IdCoordinateFactory
      Returns:
      the field id for the coordinate latitude
    • getLonField

      public String getLonField()
      Specified by:
      getLonField in class IdCoordinateFactory
      Returns:
      the field id for the coordinate longitude