|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
de.unikassel.android.sdcframework.util.AbstractWorkerThread
org.android.activityminer.app.util.ObservableWorkerThreadWithProgressNotification
org.android.activityminer.logic.util.AbstractLinearAccelerationUpdateThread<T>
T
- the enumeration type for the dimensionspublic abstract class AbstractLinearAccelerationUpdateThread<T extends Enum<T> & Dimensions>
Base type for threads in need to update the linear acceleration data by reapplying the gravitation filter.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private T |
accGXId
Dimension id for gravitation vector x value. |
private T |
accGYId
Dimension id for gravitation vector y value. |
private T |
accGZId
Dimension id for gravitation vector z value. |
private T |
accXId
Dimension id for x acceleration. |
private T |
accYId
Dimension id for y acceleration. |
private T |
accZId
Dimension id for z acceleration. |
protected Context |
context
The context. |
private GravitationFilter |
filter
The gravitation component filter. |
protected boolean |
isUseOwnLinAcc
The flag if own accelerometer data source is activated. |
private long |
sampleRate
The sample rate of the recordings. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
AbstractLinearAccelerationUpdateThread(Context context,
long sampleRate,
RuntimeConfiguration config,
AbstractFeatureFactory<T> factory,
Class<? extends Activity> intentReceiver,
CharSequence progressTitle)
Constructor |
Method Summary | |
---|---|
protected long |
updateLinearAccelerations(SensorObservationCutout<T,Double> cutOut,
long lastTs)
Linear acceleration update in a cut-out. |
Methods inherited from class org.android.activityminer.app.util.ObservableWorkerThreadWithProgressNotification |
---|
broadcastProgress, doCleanUp, getApplicationContext, getErrorNotificationMsg, getFinalResult, getMaxProgress, getNotification, getNotificationId, getResultNotificationMsg, getTaskTitle, hasObservers, hasSucceeded, incrementAndNotifyProgress, incrementAndNotifyProgress, notify, notifyProgress, notifyProgress, registerEventObserver, removeAllObservers, setMaxProgress, unregisterEventObserver |
Methods inherited from class de.unikassel.android.sdcframework.util.AbstractWorkerThread |
---|
doTerminate, doWork, hasTerminated, isLogging, isWorking, logMessage, run, setLogging, start, startWork, stopWork |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final boolean isUseOwnLinAcc
private T extends Enum<T> & Dimensions accXId
private T extends Enum<T> & Dimensions accYId
private T extends Enum<T> & Dimensions accZId
private T extends Enum<T> & Dimensions accGXId
private T extends Enum<T> & Dimensions accGYId
private T extends Enum<T> & Dimensions accGZId
protected final Context context
private final GravitationFilter filter
private final long sampleRate
Constructor Detail |
---|
public AbstractLinearAccelerationUpdateThread(Context context, long sampleRate, RuntimeConfiguration config, AbstractFeatureFactory<T> factory, Class<? extends Activity> intentReceiver, CharSequence progressTitle)
context
- the application contextsampleRate
- a the system sample rateconfig
- the current runtime configurationfactory
- the feature factory to determine dimension entry positionsintentReceiver
- the intent receiver classprogressTitle
- the progress titleMethod Detail |
---|
protected long updateLinearAccelerations(SensorObservationCutout<T,Double> cutOut, long lastTs)
cutOut
- the sensor observation cut-out to update linear acceleration
values inlastTs
- the last timeStamp in sequence processing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |