public class SOSVirtualSensorOutput extends AbstractSensorOutput<SOSVirtualSensor>
ERROR_NO_STORAGE, eventHandler, latestRecord, latestRecordTime, log, name
Constructor and Description |
---|
SOSVirtualSensorOutput(SOSVirtualSensor sensor,
DataComponent recordStructure,
DataEncoding recordEncoding) |
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. |
DataEncoding |
getRecommendedEncoding()
Provides the recommended encoding for records produced by this interface.
|
DataComponent |
getRecordDescription()
Retrieves the definition of records produced by this interface.
|
void |
publishNewFeatureOfInterest(AbstractFeature foi) |
void |
publishNewRecord(DataBlock dataBlock) |
protected void |
updateSamplingPeriod(long timeStamp) |
clearAllRecords, getAllRecords, getLatestRecord, getLatestRecords, getLatestRecordTime, getName, getNumberOfAvailableRecords, getParentModule, getStorageCapacity, isEnabled, isStorageSupported, registerListener, stop, unregisterListener
public SOSVirtualSensorOutput(SOSVirtualSensor sensor, DataComponent recordStructure, DataEncoding recordEncoding)
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 unknownpublic DataComponent getRecordDescription()
IStreamingDataInterface
Note that this is usually sent by reference and MUST not be modified
by the caller. If you really need to modify it, first get an independent
copy using DataComponent.copy()
public DataEncoding getRecommendedEncoding()
IStreamingDataInterface
Note that this is usually sent by reference and MUST not be modified
by the caller. If you really need to modify it, first get an independent
copy using DataEncoding.copy()
public void publishNewRecord(DataBlock dataBlock)
public void publishNewFeatureOfInterest(AbstractFeature foi)
protected void updateSamplingPeriod(long timeStamp)
Copyright © 2016 Sensia Software LLC. All rights reserved.