Class AggregatorChannel

    • Field Detail

      • aggregatedChannel

        protected org.openmuc.framework.dataaccess.Channel aggregatedChannel
      • sourceChannel

        protected org.openmuc.framework.dataaccess.Channel sourceChannel
      • sourceLoggingInterval

        protected long sourceLoggingInterval
      • aggregationInterval

        protected long aggregationInterval
      • aggregationSamplingTimeOffset

        protected long aggregationSamplingTimeOffset
    • Method Detail

      • aggregate

        public abstract double aggregate​(long currentTimestamp,
                                         long endTimestamp)
                                  throws AggregationException
        Performs aggregation.
        Parameters:
        currentTimestamp - start TS.
        endTimestamp - stop TS.
        Returns:
        the aggregated value.
        Throws:
        AggregationException - if an error occurs.
      • getLoggedRecords

        public java.util.List<org.openmuc.framework.data.Record> getLoggedRecords​(long currentTimestamp,
                                                                                  long endTimestamp)
                                                                           throws org.openmuc.framework.dataaccess.DataLoggerNotAvailableException,
                                                                                  java.io.IOException,
                                                                                  AggregationException
        Throws:
        org.openmuc.framework.dataaccess.DataLoggerNotAvailableException
        java.io.IOException
        AggregationException