org.android.activityminer.logic.devices
Class DeviceManager

Package class diagram package DeviceManager
java.lang.Object
  extended by org.android.activityminer.logic.devices.DeviceManager

public final class DeviceManager
extends Object

A global device manager instance.


Field Summary
private  AbstractAccelerometerDataSource accDevice
          An accelerometer device instance, which is configured with the current filter configuration.
private  LocationDataSource locationDevice
          The network location device instance.
 
Constructor Summary
DeviceManager(Context applicationContext, RuntimeConfiguration config)
          Constructor
DeviceManager(Context applicationContext, RuntimeConfiguration config, FrequencyTypes fType, LowPassFilter filter)
          Constructor
 
Method Summary
 AbstractAccelerometerDataSource getAccelerometerDevice()
          Getter for the accelerometer device which is configured with the current filter settings.
 LocationDataSource getNetworkLocationDevice()
          Getter for the network location device.
 void onDestroy()
          Does clean up.
 boolean testForLocationProvidersAvailable()
          Does test for the availability of network providers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

accDevice

private final AbstractAccelerometerDataSource accDevice
An accelerometer device instance, which is configured with the current filter configuration.


locationDevice

private final LocationDataSource locationDevice
The network location device instance.

Constructor Detail

DeviceManager

public DeviceManager(Context applicationContext,
                     RuntimeConfiguration config,
                     FrequencyTypes fType,
                     LowPassFilter filter)
Constructor

Parameters:
applicationContext - the application context
config - the configuration to use
fType - the sample frequency type
filter - the low-pass filter to use

DeviceManager

public DeviceManager(Context applicationContext,
                     RuntimeConfiguration config)
Constructor

Parameters:
applicationContext - the application context
config - the configuration to use
Method Detail

getAccelerometerDevice

public final AbstractAccelerometerDataSource getAccelerometerDevice()
Getter for the accelerometer device which is configured with the current filter settings.

Returns:
the accelerometer device

getNetworkLocationDevice

public final LocationDataSource getNetworkLocationDevice()
Getter for the network location device.

Returns:
the network location device

testForLocationProvidersAvailable

public final boolean testForLocationProvidersAvailable()
Does test for the availability of network providers.

Returns:
true if available, false otherwise.

onDestroy

public final void onDestroy()
Does clean up.