Class HpInputFactory
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.HpInputFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected HpInput
buildModel
(HpInputEntityData data, UUID uuid, String id, OperatorInput operator, OperationTime operationTime) Creates asset input entity with given parametersprotected HpInput
buildModel
(HpInputEntityData 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.getFields
(HpInputEntityData data) 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
-
HpInputFactory
public HpInputFactory()
-
-
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<HpInput,
HpInputEntityData> - Returns:
- Array of field names, can be empty but not null
-
buildModel
protected HpInput buildModel(HpInputEntityData 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 HpInput buildModel(HpInputEntityData 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
-