|
||||||||||
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 SensorConfiguration
SensorType
public float getLastStartDelay()
SensorConfiguration
getLastStartDelay
in interface SensorConfiguration
SensorController#startRecording(String, String, float)
public java.util.Set<SensorType> getLastUsedSensors()
SensorConfiguration
getLastUsedSensors
in interface SensorConfiguration
SensorType
public void setLastSampleRates(java.util.Map<SensorType,SampleRate> rates)
SensorConfiguration
setLastSampleRates
in interface SensorConfiguration
rates
- the sample rate and the sensor for which the last sample rate should be setSampleRate
,
SensorType
public void setLastStartDelay(float delay)
SensorConfiguration
setLastStartDelay
in interface SensorConfiguration
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)
public void setLastUsedSensors(java.util.Set<SensorType> sensors)
SensorConfiguration
setLastUsedSensors
in interface SensorConfiguration
sensors
- all sensors that have been used for the last recordingSensorType
public float getLastTimeout()
getLastTimeout
in interface SensorConfiguration
public void setLastTimeout(float timeout)
SensorConfiguration
setLastTimeout
in interface SensorConfiguration
timeout
- the timeout in secondspublic boolean getLocationSaving()
getLocationSaving
in interface SensorConfiguration
SensorController#setLocationSaving(boolean)
public boolean getTimeSaving()
getTimeSaving
in interface SensorConfiguration
SensorController#setTimeSaving(boolean)
public void setLocationSaving(boolean saving)
SensorConfiguration
setLocationSaving
in interface SensorConfiguration
saving
- if this is true, the location will be savedpublic void setTimeSaving(boolean saving)
SensorConfiguration
setTimeSaving
in interface SensorConfiguration
saving
- 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 |