de.unikassel.android.sdcframework.devices
Class GPSDevice

Package class diagram package GPSDevice
java.lang.Object
  extended by de.unikassel.android.sdcframework.devices.AbstractSensorDevice
      extended by de.unikassel.android.sdcframework.devices.ScannerStateAwareSensorDevice
          extended by de.unikassel.android.sdcframework.devices.AbstractLocationDevice
              extended by de.unikassel.android.sdcframework.devices.GPSDevice
All Implemented Interfaces:
SampleProvidingSensorDevice, SensorDevice, VisitableDevice

public final class GPSDevice
extends AbstractLocationDevice

Implementation of the GPS sensor device.

See Also:
ScannerStateAwareSensorDevice, SampleProvidingSensorDevice

Constructor Summary
GPSDevice(Context context)
          Constructor
 
Method Summary
protected  SampleData getCurrentSampleData()
          Method to get the current sample data
protected  int getDeviceDisabledMessageID()
          Method to get the device disabled message
 
Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractLocationDevice
doHandleLocationChanged, doSignalDeviceNotEnabledInSystem, getLocationData, getLowerFrequency, getMinDistance, getSample, hasSample, isAirplaneModeOn, isDeviceInSystemEnabled, isLocationListenerRegistered, isStateListenerRegistered, onConfigurationChanged, onCreate, onDestroy, onScannerRunningStateChange, setStateListenerRegistered
 
Methods inherited from class de.unikassel.android.sdcframework.devices.ScannerStateAwareSensorDevice
enableDeviceScanning
 
Methods inherited from class de.unikassel.android.sdcframework.devices.AbstractSensorDevice
accept, doHandleDeviceDisabledBySystem, doHandleDeviceEnabledBySystem, getConfiguration, getDeviceIdentifier, getScanner, isDeviceScanningEnabled, setDeviceIdentifier, setScanner, updateConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPSDevice

public GPSDevice(Context context)
Constructor

Parameters:
context - the context
Method Detail

getCurrentSampleData

protected SampleData getCurrentSampleData()
Description copied from class: AbstractLocationDevice
Method to get the current sample data

Specified by:
getCurrentSampleData in class AbstractLocationDevice
Returns:
the current sample data

getDeviceDisabledMessageID

protected int getDeviceDisabledMessageID()
Description copied from class: AbstractLocationDevice
Method to get the device disabled message

Specified by:
getDeviceDisabledMessageID in class AbstractLocationDevice
Returns:
the device disabled message