org.android.activityminer.logic.timeseries
Class ObservableAccCutoutCreator

Package class diagram package ObservableAccCutoutCreator
java.lang.Object
  extended by java.lang.Thread
      extended by de.unikassel.android.sdcframework.util.AbstractWorkerThread
          extended by de.unikassel.android.sdcframework.util.AbstractEventDispatcherImpl<SensorObservation<D,T>,SensorObservationCutout<D,T>>
              extended by org.android.activityminer.logic.timeseries.GenericObservableCutoutCreator<AccSensorObservationDimensions,Double>
                  extended by org.android.activityminer.logic.timeseries.ObservableAccCutoutCreator
All Implemented Interfaces:
EventDispatcher<SensorObservation<AccSensorObservationDimensions,Double>,SensorObservationCutout<AccSensorObservationDimensions,Double>>, ObservableEventSource<SensorObservationCutout<AccSensorObservationDimensions,Double>>, ObserverRegistration<SensorObservationCutout<AccSensorObservationDimensions,Double>>, WorkerThread, Runnable, ActivatableComponent

public class ObservableAccCutoutCreator
extends GenericObservableCutoutCreator<AccSensorObservationDimensions,Double>

The implementation of the generic GenericObservableCutoutCreator for the dimension type AccSensorObservationDimensions and numeric data with double precision.

See Also:
GenericObservableCutoutCreator

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class de.unikassel.android.sdcframework.util.AbstractEventDispatcherImpl
collector
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ObservableAccCutoutCreator(int frameSize, int overlapSize, Context context)
          Constructor
 
Method Summary
protected  SensorObservationCutout<AccSensorObservationDimensions,Double> newCutoutInstance()
          Does create a new cut-out instance of the concrete type.
 
Methods inherited from class org.android.activityminer.logic.timeseries.GenericObservableCutoutCreator
attachSensorObservationSource, detachSensorObservationSource, doWork, getAvgSampleUpdateRate, getCurrentCutOutDuration, getLastCutout, getOverlapSize, getQueuedObservationCount, getWindowSize, isActive, nextTimeStamp, onActivationStateChange, setActivationState, setOverlap, setWindowSize
 
Methods inherited from class de.unikassel.android.sdcframework.util.AbstractEventDispatcherImpl
doCleanUp, getCollector, getEventSource, hasObservers, notify, registerEventObserver, removeAllObservers, unregisterEventObserver
 
Methods inherited from class de.unikassel.android.sdcframework.util.AbstractWorkerThread
doTerminate, 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
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.WorkerThread
doTerminate, hasTerminated, isLogging, isWorking, setLogging, startWork, stopWork
 

Constructor Detail

ObservableAccCutoutCreator

public ObservableAccCutoutCreator(int frameSize,
                                  int overlapSize,
                                  Context context)
                           throws InvalidParameterException
Constructor

Parameters:
frameSize - the size of the frames to create from the raw time series stream
overlapSize - the count of samples by which the frames will overlap
context - the context
Throws:
InvalidParameterException
Method Detail

newCutoutInstance

protected SensorObservationCutout<AccSensorObservationDimensions,Double> newCutoutInstance()
Description copied from class: GenericObservableCutoutCreator
Does create a new cut-out instance of the concrete type.

Overrides:
newCutoutInstance in class GenericObservableCutoutCreator<AccSensorObservationDimensions,Double>
Returns:
a new cut-out instance