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

java.lang.Objectde.unikassel.android.sdcframework.devices.AbstractSensorDevice
de.unikassel.android.sdcframework.devices.VirtualSensorDevice
de.unikassel.android.sdcframework.devices.TimeProviderDevice
public class TimeProviderDevice
Implementation of the the time provider synchronization state observing sensor device.
| Field Summary | |
|---|---|
private TimeProviderSampleData |
currentSampleData
The actual sample of the device, updated whenever the handler for sensor changes is called |
private TimeInformation |
timeInfo
The event time stamp and sync state. |
| Constructor Summary | |
|---|---|
TimeProviderDevice()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
enableDeviceScanning(boolean enabled,
Context context)
Setter for device scanning enabled state |
Sample |
getSample()
Getter for a device sample |
boolean |
hasSample()
Test method for a sample available |
void |
onEvent(ObservableEventSource<? extends TimeProviderEvent> eventSource,
TimeProviderEvent observedEvent)
This method is called whenever the observed object does create an observed event |
| Methods inherited from class de.unikassel.android.sdcframework.devices.VirtualSensorDevice |
|---|
doSignalDeviceNotEnabledInSystem, isDeviceInSystemEnabled, onConfigurationChanged |
| Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractSensorDevice |
|---|
accept, doHandleDeviceDisabledBySystem, doHandleDeviceEnabledBySystem, getConfiguration, getDeviceIdentifier, getScanner, isAirplaneModeOn, isDeviceScanningEnabled, onCreate, onDestroy, setDeviceIdentifier, setScanner, updateConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final TimeProviderSampleData currentSampleData
private TimeInformation timeInfo
| Constructor Detail |
|---|
public TimeProviderDevice()
| Method Detail |
|---|
public final boolean enableDeviceScanning(boolean enabled,
Context context)
SensorDevice
enableDeviceScanning in interface SensorDeviceenableDeviceScanning in class AbstractSensorDeviceenabled - true to enable device scanning, false to disable itcontext - the application context
public Sample getSample()
SampleProvidingSensorDevice
getSample in interface SampleProvidingSensorDevicepublic boolean hasSample()
SampleProvidingSensorDevice
hasSample in interface SampleProvidingSensorDevice
public void onEvent(ObservableEventSource<? extends TimeProviderEvent> eventSource,
TimeProviderEvent observedEvent)
EventObserver
onEvent in interface EventObserver<TimeProviderEvent>eventSource - the event generatorobservedEvent - the event created by the observed object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||