Class EvInputFactory
java.lang.Object
edu.ie3.datamodel.io.factory.Factory<T,D,T>
edu.ie3.datamodel.io.factory.EntityFactory<T,D>
edu.ie3.datamodel.io.factory.input.AssetInputEntityFactory<T,D>
edu.ie3.datamodel.io.factory.input.participant.EvInputFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected EvInput
buildModel
(SystemParticipantTypedEntityData<EvTypeInput> data, UUID uuid, String id, OperatorInput operator, OperationTime operationTime) Creates asset input entity with given parametersprotected EvInput
buildModel
(SystemParticipantTypedEntityData<EvTypeInput> data, UUID uuid, String id, NodeInput node, ReactivePowerCharacteristic qCharacteristics, OperatorInput operator, OperationTime operationTime) Creates SystemParticipantInput entity with given parametersprotected String[]
Returns fields other than the required fields ofSystemParticipantInput
that have to be present.Returns list of sets of attribute names that the entity requires to be built.Methods inherited from class edu.ie3.datamodel.io.factory.input.AssetInputEntityFactory
buildModel
Methods inherited from class edu.ie3.datamodel.io.factory.Factory
expandSet, get, getFieldsString, getSupportedClasses, newSet, validateParameters
-
Constructor Details
-
EvInputFactory
public EvInputFactory()
-
-
Method Details
-
getAdditionalFields
Description copied from class:AssetInputEntityFactory
Returns fields other than the required fields ofSystemParticipantInput
that have to be present.- Specified by:
getAdditionalFields
in classAssetInputEntityFactory<EvInput,
SystemParticipantTypedEntityData<EvTypeInput>> - Returns:
- Array of field names, can be empty but not null
-
buildModel
protected EvInput buildModel(SystemParticipantTypedEntityData<EvTypeInput> data, UUID uuid, String id, NodeInput node, ReactivePowerCharacteristic qCharacteristics, OperatorInput operator, OperationTime operationTime) Creates SystemParticipantInput entity with given parameters- Parameters:
data
- entity datauuid
- UUID of the input entityid
- IDnode
- Node that the asset is connected toqCharacteristics
- Description of a reactive power characteristicoperator
- Operator of the assetoperationTime
- time in which the entity is operated- Returns:
- newly created asset object
-
getFields
Description copied from class:AssetInputEntityFactory
Returns list of sets of attribute names that the entity requires to be built.The mandatory attributes required to create an
AssetInput
are enhanced with custom attribute names that each subclass factory determines inAssetInputEntityFactory.getAdditionalFields()
.- Overrides:
getFields
in classAssetInputEntityFactory<T extends SystemParticipantInput,
D extends NodeAssetInputEntityData> - Parameters:
data
- EntityData (or subclass) containing the data- Returns:
- list of possible attribute sets
-
buildModel
protected EvInput buildModel(SystemParticipantTypedEntityData<EvTypeInput> data, UUID uuid, String id, OperatorInput operator, OperationTime operationTime) Description copied from class:AssetInputEntityFactory
Creates asset input entity with given parameters- Specified by:
buildModel
in classAssetInputEntityFactory<T extends SystemParticipantInput,
D extends NodeAssetInputEntityData> - Parameters:
data
- entity datauuid
- UUID of the input entityid
- IDoperator
- Operator of the assetoperationTime
- time in which the entity is operated- Returns:
- newly created asset object
-