Class ThermalResultFactory
java.lang.Object
edu.ie3.datamodel.io.factory.Factory<T,D,T>
edu.ie3.datamodel.io.factory.EntityFactory<T,SimpleEntityData>
edu.ie3.datamodel.io.factory.SimpleEntityFactory<T>
edu.ie3.datamodel.io.factory.result.ThermalResultFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionThermalResultFactory
(String dtfPattern) Create a new factory to buildThermalResultFactory
s and utilize the given date time formatter pattern to parse date time strings -
Method Summary
Modifier and TypeMethodDescriptionprotected ThermalUnitResult
buildModel
(SimpleEntityData data) Builds model with data from givenFactoryData
object.getFields
(SimpleEntityData simpleEntityData) 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
-
Field Details
-
ENTITY_UUID
- See Also:
-
TIME
- See Also:
-
INPUT_MODEL
- See Also:
-
timeUtil
protected final edu.ie3.util.TimeUtil timeUtil
-
-
Constructor Details
-
ThermalResultFactory
public ThermalResultFactory() -
ThermalResultFactory
Create a new factory to buildThermalResultFactory
s and utilize the given date time formatter pattern to parse date time strings- Parameters:
dtfPattern
- Pattern to parse date time strings
-
-
Method Details
-
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<ThermalUnitResult,
SimpleEntityData, ThermalUnitResult> - Parameters:
simpleEntityData
- 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<ThermalUnitResult,
SimpleEntityData, ThermalUnitResult> - Parameters:
data
-FactoryData
(or subclass) containing the data- Returns:
- model created from data
-