Class MultiChannelTimeSeriesAggregator<I,CI,O,D,T>

java.lang.Object
de.iip_ecosphere.platform.kiServices.functions.aggregation.MultiChannelTimeSeriesAggregator<I,CI,O,D,T>
Type Parameters:
I - the input data type
CI - the contained input data type in <I>, may be the same as <I> for single-data-point aggregation
O - the output data type
D - the data point type within I and O
T - the timestamp type within I and O
Direct Known Subclasses:
ChannelTimeSeriesAggregator

public class MultiChannelTimeSeriesAggregator<I,CI,O,D,T> extends Object
Generic multi-data-point time series aggregator for identified channels.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

  • Method Details

    • isAggregating

      public boolean isAggregating()
      Returns whether aggregation is enabled.
      Returns:
      true for enabled, false else
    • process

      public O process(I data)
      Called to process the input.
      Parameters:
      data - the data to process
      Returns:
      the aggregated data, may be null for none at this point in time
    • process

      protected O process(I parent, CI data)
      Processes a single data item.
      Parameters:
      parent - the parent data item holding data, may be identical to data
      data - the data item
      Returns:
      the aggregated data, may be null for none at this point in time
    • startAggregating

      public void startAggregating()
      Starts the aggregation.
    • stopAggregating

      public void stopAggregating()
      Stops the aggregation and clears the data structures.