public interface IStreamingDataInterface extends IEventProducer
Generic interface for all data producers using the SWE model to describe structure and encoding of data they generate (e.g. sensors, processes...)
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. |
DataBlock |
getLatestRecord()
Gets the latest record received on this data channel.
|
long |
getLatestRecordTime()
Used to check when the last record was produced.
This is usually set as system time when the output is sent, and must be the same as the corresponding event time stamp. |
java.lang.String |
getName()
Gets this output interface name.
|
IDataProducerModule<?> |
getParentModule()
Allows by-reference access to parent module
|
DataEncoding |
getRecommendedEncoding()
Provides the recommended encoding for records produced by this interface.
|
DataComponent |
getRecordDescription()
Retrieves the definition of records produced by this interface.
|
boolean |
isEnabled()
Checks if this interface is enabled
|
registerListener, unregisterListener
IDataProducerModule<?> getParentModule()
java.lang.String getName()
It MUST be the name reported in the map by getXXXOutputs methods
of IDataProducerModule
boolean isEnabled()
DataComponent getRecordDescription()
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()
DataEncoding getRecommendedEncoding()
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()
DataBlock getLatestRecord()
long getLatestRecordTime()
Note: this method is useful to know if a record has been produced since the
last call to getLatestRecord()
.
Long.MIN_VALUE
if no record is available yetdouble getAverageSamplingPeriod()
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 unknown