Class TimeSeriesProcessor<T extends TimeSeries<E,V>,E extends TimeSeriesEntry<V>,V extends Value>
java.lang.Object
edu.ie3.datamodel.io.processor.Processor<T>
edu.ie3.datamodel.io.processor.EntityProcessor<TimeSeries>
edu.ie3.datamodel.io.processor.timeseries.TimeSeriesProcessor<T,E,V>
public class TimeSeriesProcessor<T extends TimeSeries<E,V>,E extends TimeSeriesEntry<V>,V extends Value>
extends EntityProcessor<TimeSeries>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<TimeSeriesProcessorKey>List of all combinations of time series class, entry class and value class, this processor is able to handleFields 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 TimeSeries>>Returns a (unmodifiable)Listof classes that this Processors is capable of processingString[]Return all header elements of the tablehandleEntity(TimeSeries entity) Standard call to handle an entityhandleTimeSeries(T timeSeries) Handles the time series by processing each entry and collecting the resultsMethods inherited from class edu.ie3.datamodel.io.processor.EntityProcessor
handleProcessorSpecificQuantityMethods inherited from class edu.ie3.datamodel.io.processor.Processor
getRegisteredClass, handleQuantity, mapFieldNameToGetter, mapFieldNameToGetter, processMethodResult, processObject, processOperationTime, processUUIDArray, processVoltageLevel, processZonedDateTime, putUuidFirst, quantityValToOptionalString
-
Field Details
-
eligibleKeys
List of all combinations of time series class, entry class and value class, this processor is able to handle
-
-
Constructor Details
-
TimeSeriesProcessor
-
-
Method Details
-
handleEntity
Description copied from class:EntityProcessorStandard call to handle an entity- Overrides:
handleEntityin classEntityProcessor<TimeSeries>- Parameters:
entity- the entity that should be 'serialized' into a map of fieldName to fieldValue- Returns:
- an optional Map with fieldName to fieldValue or an empty optional if an error occurred during processing
-
handleTimeSeries
Handles the time series by processing each entry and collecting the results- Parameters:
timeSeries- Time series to handle- Returns:
- A set of mappings from field name to value
-
getHeaderElements
Description copied from class:ProcessorReturn all header elements of the table- Overrides:
getHeaderElementsin classEntityProcessor<TimeSeries>- Returns:
- all header elements of the table
-
getEligibleEntityClasses
Description copied from class:ProcessorReturns a (unmodifiable)Listof classes that this Processors is capable of processing- Specified by:
getEligibleEntityClassesin classProcessor<TimeSeries>- Returns:
- The unmodifiable
Listof eligible classes
-