public class FileSensorDataReader extends SensorDataReader
SensorDataReader
class.Constructor and Description |
---|
FileSensorDataReader(java.lang.String fname)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double[] |
get(long maxDiff)
Get a set of data with matching time stamp from the log file.
|
double[][] |
getAllCellRss() |
double[][] |
getAllWifiRss() |
java.lang.String |
getBssidId(int id) |
java.lang.String |
getCellId(int id) |
SensorData |
getSensorData()
Extract the next received SensorData object
Extracts a SensorData object from the receiver queue.
|
java.lang.String |
getSsidId(int id) |
void |
reset()
Reset the reading of the log file.
|
void |
start()
Start reading the log file.
|
boolean |
status()
Status of the log file reader.
|
void |
stop()
Stop reading the file.
|
finalize, getAll, getNext
public FileSensorDataReader(java.lang.String fname) throws java.io.IOException
fname
- The path of the log file.java.io.IOException
- Throws an exception on failure to open and read the
log file.public void start() throws java.io.IOException
start
in class SensorDataReader
java.io.IOException
- If an I/O error is encountered an exception is
thrown.public void stop() throws java.io.IOException
stop
in class SensorDataReader
java.io.IOException
- If an I/O error is encountered and exception is
thrown.protected double[] get(long maxDiff)
get
in class SensorDataReader
maxDiff
- Milliseconds between measurements to be considered from the
same sample time.public SensorData getSensorData()
SensorDataReader
getSensorData
in class SensorDataReader
public void reset()
reset
in class SensorDataReader
public boolean status()
status
in class SensorDataReader
public java.lang.String getCellId(int id)
public double[][] getAllCellRss()
public java.lang.String getBssidId(int id)
public java.lang.String getSsidId(int id)
public double[][] getAllWifiRss()