Class TimeBasedWeatherValueData
java.lang.Object
edu.ie3.datamodel.io.factory.FactoryData
edu.ie3.datamodel.io.factory.timeseries.TimeBasedValueData<WeatherValue>
edu.ie3.datamodel.io.factory.timeseries.TimeBasedWeatherValueData
-
Constructor Summary
ConstructorDescriptionTimeBasedWeatherValueData
(Map<String, String> fieldsToAttributes, org.locationtech.jts.geom.Point coordinate) Creates a new TimeBasedEntryData object -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.locationtech.jts.geom.Point
<Q extends javax.measure.Quantity<Q>>
tech.units.indriya.ComparableQuantity<Q>getQuantity
(String field, javax.measure.Unit<Q> unit) Parses and returns a Quantity from field value of given field name.int
hashCode()
toString()
Methods inherited from class edu.ie3.datamodel.io.factory.FactoryData
containsKey, getDouble, getField, getFieldOptional, getFieldsToValues, getInt, getTargetClass, getUUID, getUUIDs
-
Constructor Details
-
Method Details
-
getCoordinate
public org.locationtech.jts.geom.Point getCoordinate() -
getQuantity
public <Q extends javax.measure.Quantity<Q>> tech.units.indriya.ComparableQuantity<Q> getQuantity(String field, javax.measure.Unit<Q> unit) Description copied from class:FactoryData
Parses and returns a Quantity from field value of given field name. ThrowsFactoryException
if field does not exist or parsing fails.- Overrides:
getQuantity
in classFactoryData
- Type Parameters:
Q
- unit type parameter- Parameters:
field
- field nameunit
- unit of Quantity- Returns:
- Quantity of given field with given unit
-
equals
- Overrides:
equals
in classFactoryData
-
hashCode
public int hashCode()- Overrides:
hashCode
in classFactoryData
-
toString
- Overrides:
toString
in classTimeBasedValueData<WeatherValue>
-