|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SensorConfiguration
An interface to set up some parameter for the different sensors. The parameters will be saved in a configuration file on the sd card. If there is no such file on the sd card, a new file with default values will be created. This interface can be used to prefill some fields in the GUI with the last values that where used.
| 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 |
| Method Detail |
|---|
java.util.Set<SensorType> getLastUsedSensors()
SensorTypevoid setLastUsedSensors(java.util.Set<SensorType> sensors)
sensors - all sensors that have been used for the last recordingSensorTypefloat getLastStartDelay()
SensorController#startRecording(String, String, float)void setLastStartDelay(float delay)
delay - 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)java.util.Map<SensorType,SampleRate> getLastSampleRates()
sensor - the sensor for which the last sample rate should be returned
SensorTypevoid setLastSampleRates(java.util.Map<SensorType,SampleRate> rates)
rates - the sample rate and the sensor for which the last sample rate should be setSampleRate,
SensorTypefloat getLastTimeout()
void setLastTimeout(float timeout)
timeout - the timeout in secondsvoid setLocationSaving(boolean saving)
saving - if this is true, the location will be savedboolean getLocationSaving()
SensorController#setLocationSaving(boolean)void setTimeSaving(boolean saving)
saving - if this is true, the time will be savedboolean getTimeSaving()
SensorController#setTimeSaving(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||