Class AggregatorUtil


  • public class AggregatorUtil
    extends java.lang.Object
    Collection of methods
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.openmuc.framework.data.Record findLastRecordIn​(java.util.List<org.openmuc.framework.data.Record> recordList)
      Returns the value of the last record of the list
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findLastRecordIn

        public static org.openmuc.framework.data.Record findLastRecordIn​(java.util.List<org.openmuc.framework.data.Record> recordList)
                                                                  throws AggregationException
        Returns the value of the last record of the list

        Can 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