Class AggregatorUtil
- java.lang.Object
-
- org.openmuc.framework.driver.aggregator.AggregatorUtil
-
public class AggregatorUtil extends java.lang.ObjectCollection of methods
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.openmuc.framework.data.RecordfindLastRecordIn(java.util.List<org.openmuc.framework.data.Record> recordList)Returns the value of the last record of the list
-
-
-
Method Detail
-
findLastRecordIn
public static org.openmuc.framework.data.Record findLastRecordIn(java.util.List<org.openmuc.framework.data.Record> recordList) throws AggregationExceptionReturns the value of the last record of the listCan be used for energy aggregation. Smart meter sums the energy automatically therefore the last value contains the aggregated value
- Parameters:
recordList- List of Records- Returns:
- the value of the last record of the list
- Throws:
AggregationException- on error
-
-