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
-
- Object
- SamplingPackage
- SmartphoneSamplingPackage
- Implementers
Constructors
SmartphoneSamplingPackage
Properties
dataTypes
override
The data types this package supports.
deviceManager
override
Get the DeviceManager for the device used by this package.
deviceType
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
override
Called when this package is registered in the SamplingPackageRegistry.
Use it to register JSON deserialization functions and data transformers.