Skip to content

SmartphoneSamplingPackage

Base class for sampling packages that collect data from the phone itself.

All of them share one SmartphoneDeviceManager. dataTypes is derived from samplingSchemes, and onRegister does nothing; override it if needed.

Inheritance
Implementers

Constructors

SmartphoneSamplingPackage

SmartphoneSamplingPackage()

Properties

dataTypes

List<DataTypeMetaData> get dataTypes
override

The data types this package supports.

deviceManager

Get the DeviceManager for the device used by this package.

deviceType

String get deviceType
override

The type of device this package collects data from.

On registration, deviceManager is registered in the DeviceController under this type, which is matched with the devices in a deployment.

Note that it is assumed that a sampling package only supports one type of device.

Methods

onRegister

void onRegister()
override

Called when this package is registered in the SamplingPackageRegistry.

Use it to register JSON deserialization functions and data transformers.