SensorType
- Type of parent sensorpublic abstract class VarRateSensorOutput<SensorType extends ISensorModule<?>> extends AbstractSensorOutput<SensorType>
Specialized output class for variable rate sensors.
This provides facility to compute the average sampling rate on the fly.
ERROR_NO_STORAGE, eventHandler, latestRecord, latestRecordTime, log, name, parentSensor
Constructor and Description |
---|
VarRateSensorOutput(SensorType parentSensor,
double initialSamplingPeriod) |
VarRateSensorOutput(String name,
SensorType parentSensor,
double initialSamplingPeriod) |
Modifier and Type | Method and Description |
---|---|
double |
getAverageSamplingPeriod()
Gets the average rate at which this interface produces data.
This can be Double.NaN if the data is not streamed regularly
(e.g. |
protected void |
updateSamplingPeriod(long timeStamp) |
clearAllRecords, getAllRecords, getLatestRecord, getLatestRecords, getLatestRecordTime, getName, getNumberOfAvailableRecords, getParentModule, getStorageCapacity, isEnabled, isStorageSupported, registerListener, stop, unregisterListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRecommendedEncoding, getRecordDescription
public VarRateSensorOutput(SensorType parentSensor, double initialSamplingPeriod)
public VarRateSensorOutput(String name, SensorType parentSensor, double initialSamplingPeriod)
protected void updateSamplingPeriod(long timeStamp)
public double getAverageSamplingPeriod()
IStreamingDataInterface
Double.NaN
if the data is not streamed regularly
(e.g. case of a sensor/process that is triggered manually or by another unpredictable
external stimulus)Double.NaN
if unknownCopyright © 2016 Sensia Software LLC. All rights reserved.