|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.android.activityminer.logic.util.AbstractActivatableComponentImpl
org.android.activityminer.logic.devices.AbstractAccelerometerDataSource
org.android.activityminer.logic.devices.LinearAccelerometerDataSource
public final class LinearAccelerometerDataSource
Own implementation of an linear accelerometer data source using biquadratic filters.
| Field Summary | |
|---|---|
private GravitationFilter |
gFilter
The gravitation filter |
protected AtomicLong |
lastSampleTs
Last sample system time stamp. |
| Fields inherited from class org.android.activityminer.logic.devices.AbstractAccelerometerDataSource |
|---|
cache, context, currentData, currentDataLock, currentFilterData, filter, sampleCount, sensorRate, startRefTime, startTs |
| Constructor Summary | |
|---|---|
LinearAccelerometerDataSource(Context context,
FrequencyTypes fType,
LowPassFilter filter,
RuntimeConfiguration config)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
onActivationStateChange(boolean active)
Handler for activation state changes |
void |
onSensorEventRawAcc(SensorEvent event)
Handler for sensor events of the raw acceleration sensor |
AccelerometerData |
takeSample(Long ts)
Getter for the current sample |
| Methods inherited from class org.android.activityminer.logic.devices.AbstractAccelerometerDataSource |
|---|
getAverageSampleDistance, hasObservers, notify, onDestroy, onEvent, registerEventObserver, registerListener, removeAllObservers, setFilter, unregisterEventObserver, unregisterListener, updateFilterConfiguration |
| Methods inherited from class org.android.activityminer.logic.util.AbstractActivatableComponentImpl |
|---|
isActive, setActivationState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final GravitationFilter gFilter
protected final AtomicLong lastSampleTs
| Constructor Detail |
|---|
public LinearAccelerometerDataSource(Context context,
FrequencyTypes fType,
LowPassFilter filter,
RuntimeConfiguration config)
context - the application contextfType - the sample frequency typefilter - the filter to cut of frequencies above Nyquistconfig - the runtime configuration| Method Detail |
|---|
public final void onSensorEventRawAcc(SensorEvent event)
AbstractAccelerometerDataSource
onSensorEventRawAcc in class AbstractAccelerometerDataSourceevent - the sensor eventpublic final AccelerometerData takeSample(Long ts)
SensorDataSource
takeSample in interface SensorDataSource<AccelerometerData>takeSample in class AbstractAccelerometerDataSourcets - the requested time stamp
protected void onActivationStateChange(boolean active)
AbstractActivatableComponentImpl
onActivationStateChange in class AbstractAccelerometerDataSourceactive - the new activation state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||