de.unikassel.android.sdcframework.data
Class SensorConfigurationEntry

Package class diagram package SensorConfigurationEntry
java.lang.Object
  extended by de.unikassel.android.sdcframework.data.SensorConfigurationEntry

public final class SensorConfigurationEntry
extends Object

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"/>

See Also:
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

sensorID

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 )


enabled

private boolean enabled
The default enabled state of the sensor


frequency

private int frequency
The default sample frequency for the sensor in milliseconds


priority

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 )

Constructor Detail

SensorConfigurationEntry

public SensorConfigurationEntry()
Constructor

Method Detail

setSensorID

public final void setSensorID(String sensorID)
Setter for the sensorID

Parameters:
sensorID - the sensorID to set

getSensorID

public final String getSensorID()
Getter for the sensorID

Returns:
the sensorID

setEnabled

public final void setEnabled(boolean enabled)
Setter for the enabled

Parameters:
enabled - the enabled to set

getEnabled

public final boolean getEnabled()
Getter for the enabled

Returns:
the enabled

setFrequency

public final void setFrequency(int frequency)
Setter for the frequency

Parameters:
frequency - the frequency to set

getFrequency

public final int getFrequency()
Getter for the frequency

Returns:
the frequency

setPriority

public final void setPriority(String priority)
Setter for the priority

Parameters:
priority - the priority to set

getPriority

public final String getPriority()
Getter for the priority

Returns:
the priority