public abstract class SensorDataReader
extends java.lang.Object
Constructor and Description |
---|
SensorDataReader() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Destructor.
|
protected abstract double[] |
get(long maxDiff)
Get a set of data with matching time stamp.
|
double[][] |
getAll(long maxDiff)
Get all available measurements.
|
double[][] |
getNext(long maxDiff)
Get the next available measurement.
|
abstract SensorData |
getSensorData()
Extract the next received SensorData object
Extracts a SensorData object from the receiver queue.
|
abstract void |
reset()
Reset the data stream/source.
|
abstract void |
start()
Start the collection of data.
|
abstract boolean |
status()
Acquire the status of the reader.
|
abstract void |
stop()
Stop the collection of data.
|
protected abstract double[] get(long maxDiff)
maxDiff
- Milliseconds between measurements to be considered from the
same sample time.public double[][] getAll(long maxDiff)
maxDiff
- Milliseconds between measurements to be considered from the
same sample time.getNext(long)
. This
matches an matrix with as many rows as measurements im MATLAB.public double[][] getNext(long maxDiff)
maxDiff
- Milliseconds between measurements to be considered from
the same sample time.SensorData
object.public abstract SensorData getSensorData()
public abstract void reset()
public abstract void start() throws java.io.IOException
java.io.IOException
- If an I/O error is encountered an exception is
thrown.public abstract boolean status()
public abstract void stop() throws java.io.IOException
java.io.IOException
- If an I/O error is encountered and exception is
thrown.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable