public abstract class DefaultLocationOutput extends AbstractSensorOutput<AbstractSensorModule<?>>
Default location output for sensor drivers outputing their own location.
Modifier and Type | Field and Description |
---|---|
protected DataComponent |
outputStruct |
protected double |
updatePeriod |
ERROR_NO_STORAGE, eventHandler, latestRecord, latestRecordTime, log, name, parentSensor
Constructor and Description |
---|
DefaultLocationOutput(AbstractSensorModule<?> parentSensor,
double updatePeriod) |
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. |
String |
getName()
Gets this output interface name.
|
DataEncoding |
getRecommendedEncoding()
Provides the recommended encoding for records produced by this interface.
|
DataComponent |
getRecordDescription()
Retrieves the definition of records produced by this interface.
|
protected abstract void |
updateLocation(double time,
double x,
double y,
double z) |
clearAllRecords, getAllRecords, getLatestRecord, getLatestRecords, getLatestRecordTime, getNumberOfAvailableRecords, getParentModule, getStorageCapacity, isEnabled, isStorageSupported, registerListener, stop, unregisterListener
protected DataComponent outputStruct
protected double updatePeriod
public DefaultLocationOutput(AbstractSensorModule<?> parentSensor, double updatePeriod)
public String getName()
ISensorDataInterface
It MUST be the name reported in the map by getXXXOutputs methods
of ISensorModule
getName
in interface IStreamingDataInterface
getName
in interface ISensorDataInterface
getName
in class AbstractSensorOutput<AbstractSensorModule<?>>
ISensorModule.getAllOutputs()
public 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 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 unknownprotected abstract void updateLocation(double time, double x, double y, double z)
Copyright © 2016 Sensia Software LLC. All rights reserved.