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

java.lang.Objectde.unikassel.android.sdcframework.util.ObservableEventSourceImpl<SensorObservation<T,U>>
org.android.activityminer.logic.timeseries.AbstractObservableSensorScanner<AccSensorObservationDimensions,Double>
org.android.activityminer.logic.timeseries.ObservableAccSensorScanner
public final class ObservableAccSensorScanner
Implementation of an observable sensor scanner for accelerometer sensor observations.
| Field Summary | |
|---|---|
private AbstractAccelerometerDataSource |
accSource
The accelerometer sample source. |
| Constructor Summary | |
|---|---|
ObservableAccSensorScanner(AbstractAccelerometerDataSource accSource,
long sampleRate)
Constructor |
|
ObservableAccSensorScanner(AbstractAccelerometerDataSource accSource,
long sampleRate,
long initialDelay)
Constructor |
|
| Method Summary | |
|---|---|
void |
delegateNotify(SampleGapErrorEvent data)
Does delegate the notification about external recognition of sample gap error events to the accelerometer source. |
AbstractAccelerometerDataSource |
getAccSource()
Getter for the acceleration sample source. |
protected SensorObservation<AccSensorObservationDimensions,Double> |
getNewSensorObservation(Long ts)
Does take samples from sources and creates a new sensor observation. |
protected void |
onActivationStateChange(boolean active)
Handler for activation state changes |
| Methods inherited from class org.android.activityminer.logic.timeseries.AbstractObservableSensorScanner |
|---|
doScan, doTerminate, getFrequency, isActive, setActivationState, setInitilized |
| Methods inherited from class de.unikassel.android.sdcframework.util.ObservableEventSourceImpl |
|---|
getObservers, hasObservers, notify, onObserverRegistration, onObserverUnregistration, registerEventObserver, removeAllObservers, unregisterEventObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 |
| Field Detail |
|---|
private final AbstractAccelerometerDataSource accSource
| Constructor Detail |
|---|
public ObservableAccSensorScanner(AbstractAccelerometerDataSource accSource,
long sampleRate)
accSource - the accelerometer sample source to usesampleRate - the sample rate in milliseconds
public ObservableAccSensorScanner(AbstractAccelerometerDataSource accSource,
long sampleRate,
long initialDelay)
accSource - the accelerometer sample source to usesampleRate - the sample rate in millisecondsinitialDelay - the initial start delay| Method Detail |
|---|
public final AbstractAccelerometerDataSource getAccSource()
ObservableSensorScanner
protected final void onActivationStateChange(boolean active)
onActivationStateChange in class AbstractObservableSensorScanner<AccSensorObservationDimensions,Double>active - the new activation stateprotected SensorObservation<AccSensorObservationDimensions,Double> getNewSensorObservation(Long ts)
AbstractObservableSensorScanner
getNewSensorObservation in class AbstractObservableSensorScanner<AccSensorObservationDimensions,Double>ts - the time stamp for the observation
public void delegateNotify(SampleGapErrorEvent data)
SensorScanner
data - the sample gap error event notifications to delegate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||