|
||||||||||
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
de.unikassel.android.sdcframework.util.AbstractEventDispatcherImpl<SensorObservationCutout<T,Double>,FeatureVector>
org.android.activityminer.logic.features.AbstractFeatureExtractor<T>
org.android.activityminer.logic.features.AbstractCutoutFeatureExtractor<T>
T
- the enumeration type for the dimensionspublic abstract class AbstractCutoutFeatureExtractor<T extends Enum<T> & Dimensions>
The cut/out feature extractor is a feature extractor with an
integrated cut-out creator component ObservableCutoutCreator
, which
is connected to its own in port for sensor observation cut-outs.
In general activation state is delegated to internal components.
On activation, the cut-out creator is attached to an observable sensor
observation source which must be provided during construction.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private Context |
context
The context. |
private GenericObservableCutoutCreator<T,Double> |
cutoutSource
The creator for the sensor observation cut-outs to extract features from. |
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 | |
---|---|
AbstractCutoutFeatureExtractor(long windowSize,
int overlap,
FeatureTypes[] featureTypes,
long sampleRate,
Context context)
Constructor |
Method Summary | |
---|---|
void |
attachSensorObservationSource(ObservableEventSource<SensorObservation<T,Double>> sensorObservationSource)
Method to attach a source for sensor observations. |
void |
detachSensorObservationSource(ObservableEventSource<SensorObservation<T,Double>> sensorObservationSource)
Method to detach from a source for sensor observations. |
protected GenericObservableCutoutCreator<T,Double> |
getCutoutSource()
Getter for the cutoutSource |
int |
getOverlapSize()
Getter for the milliseconds by which a cut-out will overlap with the previous one. |
protected int |
getQueuedObservationCount()
Getter for the remaining count of unprocessed observations. |
long |
getWindowSize()
Getter for the fixed size of window used to extract cut-outs from the observed sensor observations. |
protected void |
onActivationStateChange(boolean active)
Handler for activation state changes |
void |
onDestroy()
Destruction. |
void |
setWindowSize(int windowSize)
Setter for the sliding window size used to extract cut-outs. |
Methods inherited from class org.android.activityminer.logic.features.AbstractFeatureExtractor |
---|
doWork, featureTypeConfiguration, getExtractionTime, getFactory, getQueuedCutoutCount, isActive, isEctracting, setActivationState |
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.ObservableEventSource |
---|
hasObservers, notify |
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObserverRegistration |
---|
registerEventObserver, removeAllObservers, unregisterEventObserver |
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.WorkerThread |
---|
doTerminate, hasTerminated, isLogging, isWorking, setLogging, startWork, stopWork |
Field Detail |
---|
private final GenericObservableCutoutCreator<T extends Enum<T> & Dimensions,Double> cutoutSource
private Context context
Constructor Detail |
---|
public AbstractCutoutFeatureExtractor(long windowSize, int overlap, FeatureTypes[] featureTypes, long sampleRate, Context context)
windowSize
- the size of the window to extract features from, which is
moved over the raw time series streamoverlap
- the overlap in percent of continuous cut-outsfeatureTypes
- the types of the features to extract from the time series datasampleRate
- the configured sample ratecontext
- the contextMethod Detail |
---|
protected GenericObservableCutoutCreator<T,Double> getCutoutSource()
protected void onActivationStateChange(boolean active)
AbstractFeatureExtractor
onActivationStateChange
in class AbstractFeatureExtractor<T extends Enum<T> & Dimensions>
active
- the new activation statepublic final long getWindowSize()
public final void setWindowSize(int windowSize)
windowSize
- the window size to setpublic final int getOverlapSize()
public final void onDestroy()
onDestroy
in class AbstractFeatureExtractor<T extends Enum<T> & Dimensions>
protected final int getQueuedObservationCount()
public final void attachSensorObservationSource(ObservableEventSource<SensorObservation<T,Double>> sensorObservationSource)
sensorObservationSource
- the source for sensor observations to attach topublic final void detachSensorObservationSource(ObservableEventSource<SensorObservation<T,Double>> sensorObservationSource)
sensorObservationSource
- the source for sensor observations to detach from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |