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

java.lang.Objectde.unikassel.android.sdcframework.util.ObservableEventSourceImpl<Sample>
de.unikassel.android.sdcframework.devices.AbstractSensorDeviceScanner
public abstract class AbstractSensorDeviceScanner
| Field Summary | |
|---|---|
private SensorDevice |
device
the scanned sensor device |
private AtomicBoolean |
isActive
The active state flag |
| Constructor Summary | |
|---|---|
AbstractSensorDeviceScanner()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
enable(boolean enable,
Context context)
Does set the enabled state for the scanner. |
SensorDevice |
getDevice()
Getter for the sensor device |
protected boolean |
isActive()
Getter for the scanner activation state |
protected abstract boolean |
isCompatibleDevice(SensorDevice device)
Validation method for a compatible device type |
boolean |
isEnabled()
Getter for the enabled state |
void |
onDestroy(Context context)
Is called when the owner destroys this scanner |
protected void |
setActive(boolean active)
Setter for the scanner activation state |
void |
setDevice(SensorDevice device,
Context context)
Setter for the sensor device |
| 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.devices.facade.SensorDeviceScanner |
|---|
start, stop |
| 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 SensorDevice device
private final AtomicBoolean isActive
| Constructor Detail |
|---|
public AbstractSensorDeviceScanner()
| Method Detail |
|---|
public final void setDevice(SensorDevice device,
Context context)
SensorDeviceScanner
setDevice in interface SensorDeviceScannerdevice - the sensor device to setcontext - the application contextprotected abstract boolean isCompatibleDevice(SensorDevice device)
device - the device to test for compatibilitypublic final SensorDevice getDevice()
SensorDeviceScanner
getDevice in interface SensorDeviceScannerpublic final boolean isEnabled()
SensorDeviceScanner
isEnabled in interface SensorDeviceScannerprotected final void setActive(boolean active)
active - the state to setprotected final boolean isActive()
public final boolean enable(boolean enable,
Context context)
SensorDeviceScanner
enable in interface SensorDeviceScannerenable - enabled state for the scanner to setcontext - the application context
public void onDestroy(Context context)
SensorDeviceScanner
onDestroy in interface SensorDeviceScannercontext - the application context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||