de.unikassel.android.sdcframework.devices
Class NetworkLocationDevice

Package class diagram package NetworkLocationDevice
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.NetworkLocationDevice
All Implemented Interfaces:
SampleProvidingSensorDevice, SensorDevice, VisitableDevice

public final class NetworkLocationDevice
extends AbstractLocationDevice

Implementation of the network location sensor device using the location manager to get cell tower or wlan based location information.

See Also:
ScannerStateAwareSensorDevice, SampleProvidingSensorDevice

Constructor Summary
NetworkLocationDevice(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

NetworkLocationDevice

public NetworkLocationDevice(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