Class ChannelTimeSeriesAggregatorTest.AggFunction
java.lang.Object
test.de.iip_ecosphere.platform.kiServices.functions.aggregation.ChannelTimeSeriesAggregatorTest.AggFunction
- All Implemented Interfaces:
de.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.AggregationFunction<ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement,,ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement, ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement, Double, Date> de.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.CompletionFunction<Date>,de.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.ResultBuilder<ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement,Double, Date>
- Enclosing class:
ChannelTimeSeriesAggregatorTest
private static class ChannelTimeSeriesAggregatorTest.AggFunction
extends Object
implements de.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.AggregationFunction<ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement,ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement,ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement,Double,Date>, de.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.ResultBuilder<ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement,Double,Date>
The aggregation function in a bit lazy form merged with the
MultiChannelTimeSeriesAggregator.ResultBuilder.- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()booleanchunkCompleted(int numberAggregatedSamples, Date timestamp) de.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.ResultBuilder<ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement, Double, Date> createResult(int categoriesCount)
-
Field Details
-
channels
-
pos
private int pos
-
-
Constructor Details
-
AggFunction
private AggFunction()
-
-
Method Details
-
getTimestamp
- Specified by:
getTimestampin interfacede.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.AggregationFunction<ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement,ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement, ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement, Double, Date>
-
getCategory
- Specified by:
getCategoryin interfacede.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.AggregationFunction<ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement,ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement, ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement, Double, Date>
-
getData
- Specified by:
getDatain interfacede.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.AggregationFunction<ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement,ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement, ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement, Double, Date>
-
chunkCompleted
- Specified by:
chunkCompletedin interfacede.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.CompletionFunction<Date>
-
createResult
public de.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.ResultBuilder<ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement,Double, createResultDate> (int categoriesCount) - Specified by:
createResultin interfacede.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.AggregationFunction<ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement,ChannelTimeSeriesAggregatorTest.PlcEnergyMeasurement, ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement, Double, Date>
-
addData
- Specified by:
addDatain interfacede.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.ResultBuilder<ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement,Double, Date>
-
build
- Specified by:
buildin interfacede.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator.ResultBuilder<ChannelTimeSeriesAggregatorTest.AggregatedPlcEnergyMeasurement,Double, Date>
-