|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.Android_Seminar.backend.impl.SensorConfigurationImpl
public class SensorConfigurationImpl
| Constructor Summary | |
|---|---|
SensorConfigurationImpl()
standard constructor |
|
| Method Summary | |
|---|---|
java.util.Map<SensorType,SampleRate> |
getLastSampleRates()
Receives the last for a specified sensor. |
float |
getLastStartDelay()
Receives the last start delay. |
float |
getLastTimeout()
|
java.util.Set<SensorType> |
getLastUsedSensors()
Receives a list of all sensors that have been used during the last recording. |
boolean |
getLocationSaving()
|
boolean |
getTimeSaving()
|
void |
setLastSampleRates(java.util.Map<SensorType,SampleRate> rates)
Saves the last sample rate to the configuration file. |
void |
setLastStartDelay(float delay)
Saves the last start delay to the configuration file. |
void |
setLastTimeout(float timeout)
The timeout value determines when a data recording will stop. |
void |
setLastUsedSensors(java.util.Set<SensorType> sensors)
Saves all sensors that have been used for the last recording to the configuration file. |
void |
setLocationSaving(boolean saving)
determines whether the current location should be saved within an 'activity' in the xml file or not |
void |
setTimeSaving(boolean saving)
determines whether the current time should be saved within an 'activity' in the xml file or not |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SensorConfigurationImpl()
| Method Detail |
|---|
public java.util.Map<SensorType,SampleRate> getLastSampleRates()
SensorConfiguration
getLastSampleRates in interface SensorConfigurationSensorTypepublic float getLastStartDelay()
SensorConfiguration
getLastStartDelay in interface SensorConfigurationSensorController#startRecording(String, String, float)public java.util.Set<SensorType> getLastUsedSensors()
SensorConfiguration
getLastUsedSensors in interface SensorConfigurationSensorTypepublic void setLastSampleRates(java.util.Map<SensorType,SampleRate> rates)
SensorConfiguration
setLastSampleRates in interface SensorConfigurationrates - the sample rate and the sensor for which the last sample rate should be setSampleRate,
SensorTypepublic void setLastStartDelay(float delay)
SensorConfiguration
setLastStartDelay in interface SensorConfigurationdelay - the time the application has to wait until the
recording will start after executing the SensorController#startRecording(String, String, float)
method.SensorController#startRecording(String, String, float)public void setLastUsedSensors(java.util.Set<SensorType> sensors)
SensorConfiguration
setLastUsedSensors in interface SensorConfigurationsensors - all sensors that have been used for the last recordingSensorTypepublic float getLastTimeout()
getLastTimeout in interface SensorConfigurationpublic void setLastTimeout(float timeout)
SensorConfiguration
setLastTimeout in interface SensorConfigurationtimeout - the timeout in secondspublic boolean getLocationSaving()
getLocationSaving in interface SensorConfigurationSensorController#setLocationSaving(boolean)public boolean getTimeSaving()
getTimeSaving in interface SensorConfigurationSensorController#setTimeSaving(boolean)public void setLocationSaving(boolean saving)
SensorConfiguration
setLocationSaving in interface SensorConfigurationsaving - if this is true, the location will be savedpublic void setTimeSaving(boolean saving)
SensorConfiguration
setTimeSaving in interface SensorConfigurationsaving - if this is true, the time will be saved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||