public class Sensor extends Object
| Modifier and Type | Field and Description |
|---|---|
Runnable |
acquire_thread
Reference to current
Runnable that implements the acquisition for this sensor |
String |
Description
description of the sensor
|
boolean |
discovered
Flag if sensor has already been discovered or not
|
String |
Explanation
longer explanation of the sensor
|
Handler |
handler
points to handler serving this sensor
|
boolean |
hasHistory
does this sensor support history?
|
int |
max
max value of sensor reading (if supported)
|
int |
min
min value of sensor reading (if supported)
|
Sensor |
next
Reference to the next sensor in the repository list
|
int |
polltime
polling timer - if zero, the sensor is a callback sensor and will block appropriately when called during recording
|
int |
scaler
scaler of the sensor
|
static int |
SENSOR_INVALID
Sensor is invalid, e.g., when BT pulse cannot be found when AIRS is started
|
static int |
SENSOR_SUSPEND
Sensor is currently suspended, such as when BT pulse temporarily disconnects
|
static int |
SENSOR_VALID
Sensor is valid
|
int |
status
status of the timer (valid, invalid, suspended)
|
String |
statusString
String describing the status further
|
String |
Symbol
symbol of the sensor (see online manual for all supported sensor symbols for now)
|
long |
time_saved
time when sensor was saved in airs_sensor_used for cases where sensors are removed by Storica
|
String |
type
data type of the sensor (int, float, txt, str, arr)
|
String |
Unit
unit of the sensor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
get_value(String query)
Synchronised acquire method to allow for multiple queries accessing the same sensor values concurrently, i.e., this is the point of data acquisition
|
void |
set_polltime(int poll)
For some sensors allow setting polltime
|
public static final int SENSOR_VALID
public static final int SENSOR_INVALID
public static final int SENSOR_SUSPEND
public Handler handler
public String Symbol
public String Unit
public String Description
public String Explanation
public String type
public int scaler
public int min
public int max
public boolean hasHistory
public int polltime
public int status
public String statusString
public long time_saved
public boolean discovered
public Runnable acquire_thread
Runnable that implements the acquisition for this sensorpublic Sensor next
public byte[] get_value(String query)
query - String with the Sensor querypublic void set_polltime(int poll)
poll - polling time in milliseconds