DeviceDataCollectorFactory
Provides the DeviceDataCollectors a client uses to collect data.
Holds a localDataCollector for the primary device and creates ConnectedDeviceDataCollectors for connected devices. Given to a ClientManager. In CARP Mobile Sensing, DeviceController implements it.
Constructors
DeviceDataCollectorFactory
- DeviceDataCollector? localDataCollector
Properties
localDataCollector
getter/setter pair
The data collector for the primary device.
Methods
createConnectedDataCollector
- String deviceType,
- DeviceRegistration deviceRegistration
Create a ConnectedDeviceDataCollector for a connected deviceType using connection options specified in deviceRegistration.
Returns null in case the ConnectedDeviceDataCollector cannot be created.