Class TimeBasedSimpleValueFactory<V extends Value>
java.lang.Object
edu.ie3.datamodel.io.factory.Factory<V,D,TimeBasedValue<V>>
edu.ie3.datamodel.io.factory.timeseries.TimeBasedValueFactory<SimpleTimeBasedValueData<V>,V>
edu.ie3.datamodel.io.factory.timeseries.TimeBasedSimpleValueFactory<V>
public class TimeBasedSimpleValueFactory<V extends Value>
extends TimeBasedValueFactory<SimpleTimeBasedValueData<V>,V>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTimeBasedSimpleValueFactory
(Class<? extends V> valueClasses) TimeBasedSimpleValueFactory
(Class<? extends V> valueClasses, String timePattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected TimeBasedValue<V>
buildModel
(SimpleTimeBasedValueData<V> data) Builds model with data from givenFactoryData
object.getFields
(SimpleTimeBasedValueData<V> data) Returns list of sets of attribute names that the entity requires to be built.Return the field name for the date timeMethods inherited from class edu.ie3.datamodel.io.factory.Factory
expandSet, get, getFieldsString, getSupportedClasses, newSet, validateParameters
-
Constructor Details
-
TimeBasedSimpleValueFactory
-
TimeBasedSimpleValueFactory
-
-
Method Details
-
getTimeFieldString
Return the field name for the date time- Returns:
- the field name for the date time
-
buildModel
Description copied from class:Factory
Builds model with data from givenFactoryData
object. ThrowsFactoryException
if something goes wrong.- Specified by:
buildModel
in classFactory<V extends Value,
SimpleTimeBasedValueData<V extends Value>, TimeBasedValue<V extends Value>> - 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<V extends Value,
SimpleTimeBasedValueData<V extends Value>, TimeBasedValue<V extends Value>> - Parameters:
data
- EntityData (or subclass) containing the data- Returns:
- list of possible attribute sets
-