Class ResultEntityProcessor
java.lang.Object
edu.ie3.datamodel.io.processor.Processor<T>
edu.ie3.datamodel.io.processor.EntityProcessor<ResultEntity>
edu.ie3.datamodel.io.processor.result.ResultEntityProcessor
'Serializer' for
ResultEntitys into a fieldName to value representation to allow for an
easy processing into a database or file sink e.g. .csv It is important that the units used in
this class are equal to the units used SystemParticipantResultFactory to prevent invalid
interpretation of unit prefixes!- Since:
- 31.01.20
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<Class<? extends ResultEntity>>The entities that can be used within this processorFields inherited from class edu.ie3.datamodel.io.processor.EntityProcessor
headerElements, logFields inherited from class edu.ie3.datamodel.io.processor.Processor
logger, registeredClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<Class<? extends ResultEntity>>Returns a (unmodifiable)Listof classes that this Processors is capable of processinghandleProcessorSpecificQuantity(javax.measure.Quantity<?> quantity, String fieldName) This method should handle all quantities that are model processor specific e.g.Methods inherited from class edu.ie3.datamodel.io.processor.EntityProcessor
getHeaderElements, handleEntityMethods inherited from class edu.ie3.datamodel.io.processor.Processor
getRegisteredClass, handleQuantity, mapFieldNameToGetter, mapFieldNameToGetter, processMethodResult, processObject, processOperationTime, processUUIDArray, processVoltageLevel, processZonedDateTime, putUuidFirst, quantityValToOptionalString
-
Field Details
-
eligibleEntityClasses
The entities that can be used within this processor
-
-
Constructor Details
-
ResultEntityProcessor
-
-
Method Details
-
handleProcessorSpecificQuantity
protected Optional<String> handleProcessorSpecificQuantity(javax.measure.Quantity<?> quantity, String fieldName) Description copied from class:ProcessorThis method should handle all quantities that are model processor specific e.g. we need to handle active power p different forResultEntitys andSystemParticipantInputs Hence from the generalized methodProcessor.handleQuantity(Quantity, String), this allows for the specific handling of child implementations. See the implementation @ResultEntityProcessorfor details.- Overrides:
handleProcessorSpecificQuantityin classEntityProcessor<ResultEntity>- Parameters:
quantity- the quantity that should be processedfieldName- the field name the quantity is set to- Returns:
- an optional string with the normalized to
StandardUnitsvalue of the quantity or empty if an error occurred during processing
-
getEligibleEntityClasses
Description copied from class:ProcessorReturns a (unmodifiable)Listof classes that this Processors is capable of processing- Specified by:
getEligibleEntityClassesin classProcessor<ResultEntity>- Returns:
- The unmodifiable
Listof eligible classes
-