de.unikassel.android.sdcframework.devices.facade
Interface SensorDeviceComposite

Package class diagram package SensorDeviceComposite
All Superinterfaces:
SensorDevice, VisitableDevice

public interface SensorDeviceComposite
extends SensorDevice

Interface for a composition of sensor devices.


Method Summary
 boolean addSensorDevice(SensorDevice device)
          To add a device to the composite type
 Collection<SensorDevice> getDevices()
          Getter for the sub devices
 VisitableDevice getSensorDevice(String identifier)
          To get a specific device
 void removeSensorDevice(VisitableDevice device, Context context)
          To remove a device from the composite type
 
Methods inherited from interface de.unikassel.android.sdcframework.devices.facade.SensorDevice
doHandleDeviceDisabledBySystem, doHandleDeviceEnabledBySystem, enableDeviceScanning, getConfiguration, getDeviceIdentifier, getScanner, isDeviceInSystemEnabled, isDeviceScanningEnabled, onCreate, onDestroy, setScanner, updateConfiguration
 
Methods inherited from interface de.unikassel.android.sdcframework.devices.facade.VisitableDevice
accept
 

Method Detail

getDevices

Collection<SensorDevice> getDevices()
Getter for the sub devices

Returns:
the devices

addSensorDevice

boolean addSensorDevice(SensorDevice device)
To add a device to the composite type

Parameters:
device - the device to add
Returns:
true if successful, false otherwise

removeSensorDevice

void removeSensorDevice(VisitableDevice device,
                        Context context)
To remove a device from the composite type

Parameters:
device - the device to remove
context - the application context

getSensorDevice

VisitableDevice getSensorDevice(String identifier)
To get a specific device

Parameters:
identifier - the device identifier
Returns:
the device with the given identifier or null