void DataObserverAdapter::_Update(const Counter& arMeas, size_t aIndex) { JNIEnv* pEnv = GetEnv(); jlong value = arMeas.GetValue(); jbyte quality = arMeas.GetQuality(); jlong timestamp = arMeas.GetTime(); jlong index = aIndex; pEnv->CallVoidMethod(mProxy, mUpdateCounter, value, quality, timestamp, index); }
Counter IntegrationTest::Next(const Counter& arPoint) { Counter point(arPoint.GetValue() + 1, arPoint.GetQuality()); return point; }