Class AverageAggregation
- java.lang.Object
-
- org.openmuc.framework.driver.aggregator.AggregatorChannel
-
- org.openmuc.framework.driver.aggregator.types.AverageAggregation
-
public class AverageAggregation extends AggregatorChannel
-
-
Field Summary
-
Fields inherited from class org.openmuc.framework.driver.aggregator.AggregatorChannel
aggregatedChannel, aggregationInterval, aggregationSamplingTimeOffset, channelAddress, sourceChannel, sourceLoggingInterval
-
-
Constructor Summary
Constructors Constructor Description AverageAggregation(ChannelAddress simpleAddress, org.openmuc.framework.dataaccess.DataAccessService dataAccessService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleaggregate(long currentTimestamp, long endTimestamp)Performs aggregation.-
Methods inherited from class org.openmuc.framework.driver.aggregator.AggregatorChannel
getLoggedRecords
-
-
-
-
Constructor Detail
-
AverageAggregation
public AverageAggregation(ChannelAddress simpleAddress, org.openmuc.framework.dataaccess.DataAccessService dataAccessService) throws AggregationException
- Throws:
AggregationException
-
-
Method Detail
-
aggregate
public double aggregate(long currentTimestamp, long endTimestamp) throws AggregationExceptionDescription copied from class:AggregatorChannelPerforms aggregation.- Specified by:
aggregatein classAggregatorChannel- Parameters:
currentTimestamp- start TS.endTimestamp- stop TS.- Returns:
- the aggregated value.
- Throws:
AggregationException- if an error occurs.
-
-