de.unikassel.android.sdcframework.devices
Class SensorDeviceFactoryImpl

Package class diagram package SensorDeviceFactoryImpl
java.lang.Object
  extended by de.unikassel.android.sdcframework.devices.SensorDeviceFactoryImpl
All Implemented Interfaces:
SensorDeviceFactory

public final class SensorDeviceFactoryImpl
extends Object
implements SensorDeviceFactory

Implementation of the sensor device factory, to be used by the sensor device manager to create the available sensor devices.

See Also:
SensorDeviceManagerImpl

Constructor Summary
SensorDeviceFactoryImpl()
          Constructor
 
Method Summary
 SensorDevice createSensorDevice(SensorDeviceIdentifier deviceIdentifier, Context applicationContext)
          Sensor device creation
private  SensorDevice doCreateSensorDevice(SensorDeviceIdentifier deviceIdentifier, Context applicationContext)
          Internal device creation method
private  SensorDeviceScanner doCreateSensorDeviceScanner(SensorDeviceIdentifier deviceIdentifier, Context applicationContext)
          Internal sensor device scanner creation method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SensorDeviceFactoryImpl

public SensorDeviceFactoryImpl()
Constructor

Method Detail

createSensorDevice

public SensorDevice createSensorDevice(SensorDeviceIdentifier deviceIdentifier,
                                       Context applicationContext)
Description copied from interface: SensorDeviceFactory
Sensor device creation

Specified by:
createSensorDevice in interface SensorDeviceFactory
Parameters:
deviceIdentifier - the sensor device identifier
applicationContext - the application context
Returns:
the created sensor device for the given identifier

doCreateSensorDevice

private SensorDevice doCreateSensorDevice(SensorDeviceIdentifier deviceIdentifier,
                                          Context applicationContext)
Internal device creation method

Parameters:
deviceIdentifier - the device identifier
applicationContext - the application context
Returns:
the device, or null if unknown

doCreateSensorDeviceScanner

private SensorDeviceScanner doCreateSensorDeviceScanner(SensorDeviceIdentifier deviceIdentifier,
                                                        Context applicationContext)
Internal sensor device scanner creation method

Parameters:
deviceIdentifier - the device identifier
applicationContext - the application context
Returns:
the device scanner, or null if unknown