Search in sources :

Example 71 with IdPointValueTime

use of com.serotonin.m2m2.rt.dataImage.IdPointValueTime in project ma-core-public by infiniteautomation.

the class PVTCollator method row.

@Override
public void row(IdPointValueTime pvt, int index) {
    if (mvt == null || mvt.getTime() < pvt.getTime()) {
        done();
        mvt = new MultiValueTime(new Object[pointIds.size()], pvt.getTime());
    }
    mvt.getValues()[pointIds.indexOf(pvt.getId())] = pvt.getValue();
}
Also used : MultiValueTime(com.serotonin.m2m2.rt.dataImage.MultiValueTime)

Aggregations

IdPointValueTime (com.serotonin.m2m2.rt.dataImage.IdPointValueTime)68 IOException (java.io.IOException)60 MutableInt (org.apache.commons.lang3.mutable.MutableInt)60 MutableLong (org.apache.commons.lang3.mutable.MutableLong)36 NextTimePeriodAdjuster (com.infiniteautomation.mango.util.datetime.NextTimePeriodAdjuster)21 ZonedDateTime (java.time.ZonedDateTime)21 Test (org.junit.Test)21 ArrayList (java.util.ArrayList)19 MultistateValue (com.serotonin.m2m2.rt.dataImage.types.MultistateValue)14 NumericValue (com.serotonin.m2m2.rt.dataImage.types.NumericValue)9 AnalogStatistics (com.infiniteautomation.mango.statistics.AnalogStatistics)7 StartsAndRuntime (com.infiniteautomation.mango.statistics.StartsAndRuntime)7 StartsAndRuntimeList (com.infiniteautomation.mango.statistics.StartsAndRuntimeList)7 ValueChangeCounter (com.infiniteautomation.mango.statistics.ValueChangeCounter)7 AnnotatedIdPointValueTime (com.serotonin.m2m2.rt.dataImage.AnnotatedIdPointValueTime)6 PointValueTime (com.serotonin.m2m2.rt.dataImage.PointValueTime)4 DataPointVO (com.serotonin.m2m2.vo.DataPointVO)4 AnnotatedPointValueTime (com.serotonin.m2m2.rt.dataImage.AnnotatedPointValueTime)2 PointValueFacade (com.serotonin.m2m2.rt.dataImage.PointValueFacade)2 HashMap (java.util.HashMap)2