|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.data.SensorConfigurationEntry
public final class SensorConfigurationEntry
A sensor configuration does describe the default configuration for a
sensor type.
It is used to configure default values as well as the general
availability of a sensor in the framework. All attributes but the id are optional.
Examples:
<sensor id="Wifi" enabled="true" frequency="30000" prio="Level2"/>
<sensor id="GSM"/>
<sensor id="Accelerometer" enabled="true" frequency="1000"/>
SDCConfiguration
Field Summary | |
---|---|
private boolean |
enabled
The default enabled state of the sensor |
private int |
frequency
The default sample frequency for the sensor in milliseconds |
private String |
priority
The default transmission priority for the sensors samples which has to be a valid string representation of a SensorDevicePriorities enumeration value ( e.g.: "Level1" for SensorDevicePriorities.Level1 ) |
private String |
sensorID
The sensor identifier which has to be a valid string representation of a SensorDeviceIdentifier enumeration value ( e.g.: "Wifi" for SensorDeviceIdentifier.Wifi ) |
Constructor Summary | |
---|---|
SensorConfigurationEntry()
Constructor |
Method Summary | |
---|---|
boolean |
getEnabled()
Getter for the enabled |
int |
getFrequency()
Getter for the frequency |
String |
getPriority()
Getter for the priority |
String |
getSensorID()
Getter for the sensorID |
void |
setEnabled(boolean enabled)
Setter for the enabled |
void |
setFrequency(int frequency)
Setter for the frequency |
void |
setPriority(String priority)
Setter for the priority |
void |
setSensorID(String sensorID)
Setter for the sensorID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String sensorID
private boolean enabled
private int frequency
private String priority
Constructor Detail |
---|
public SensorConfigurationEntry()
Method Detail |
---|
public final void setSensorID(String sensorID)
sensorID
- the sensorID to setpublic final String getSensorID()
public final void setEnabled(boolean enabled)
enabled
- the enabled to setpublic final boolean getEnabled()
public final void setFrequency(int frequency)
frequency
- the frequency to setpublic final int getFrequency()
public final void setPriority(String priority)
priority
- the priority to setpublic final String getPriority()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |