|
||||||||||
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<SensorObservationDimensions,Double>
org.android.activityminer.logic.timeseries.ObservableSensorScannerImpl
public final class ObservableSensorScannerImpl
Implementation of an observable sensor scanner for sensor data observations from all known sensors.
Field Summary | |
---|---|
private AbstractAccelerometerDataSource |
accSource
The accelerometer sample source |
private LocationDataSource |
locSource
The network location sample source |
Constructor Summary | |
---|---|
ObservableSensorScannerImpl(AbstractAccelerometerDataSource accSource,
LocationDataSource locSource,
long samplingFrequency)
Constructor |
|
ObservableSensorScannerImpl(AbstractAccelerometerDataSource accSource,
LocationDataSource locSource,
long samplingFrequency,
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. |
LocationDataSource |
getLocSource()
Getter for the location sample source. |
protected SensorObservation<SensorObservationDimensions,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
private final LocationDataSource locSource
Constructor Detail |
---|
public ObservableSensorScannerImpl(AbstractAccelerometerDataSource accSource, LocationDataSource locSource, long samplingFrequency)
accSource
- the accelerometer sample source to uselocSource
- the network location sample source to usesamplingFrequency
- the frequency in milliseconds samples are taken withpublic ObservableSensorScannerImpl(AbstractAccelerometerDataSource accSource, LocationDataSource locSource, long samplingFrequency, long initialDelay)
accSource
- the accelerometer sample source to uselocSource
- the network location sample source to usesamplingFrequency
- the frequency in milliseconds samples are taken withinitialDelay
- the initial start delayMethod Detail |
---|
public final AbstractAccelerometerDataSource getAccSource()
ObservableSensorScanner
public final LocationDataSource getLocSource()
protected final void onActivationStateChange(boolean active)
AbstractObservableSensorScanner
onActivationStateChange
in class AbstractObservableSensorScanner<SensorObservationDimensions,Double>
active
- the new activation stateprotected final SensorObservation<SensorObservationDimensions,Double> getNewSensorObservation(Long ts)
AbstractObservableSensorScanner
getNewSensorObservation
in class AbstractObservableSensorScanner<SensorObservationDimensions,Double>
ts
- the time stamp for the observation
public final 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 |