Smartphone
Configuration of an internet-connected smartphone with built-in sensors.
The usual primary device of a CARP Mobile Sensing protocol; its default role name is DEFAULT_ROLE_NAME. The CARP Core sampling schemes cover geolocation, step count, acceleration and angular velocity. Sampling packages in CARP Mobile Sensing add many more data types.
- Inheritance
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
Smartphone.fromJson
Smartphone
- String roleName = Smartphone.DEFAULT_ROLE_NAME,
Create a new Smartphone device descriptor. If roleName is not specified, then the DEFAULT_ROLE_NAME is used.
Constants
DEFAULT_ROLE_NAME
The default role name for a smartphone.
DEVICE_TYPE
The type of a smartphone device.
Properties
dataTypeSamplingSchemes
Sampling schemes for all the sensors available on this device.
Implementations of DeviceConfiguration should return a map of all supported sampling schemes here. Null in this base class.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
createRegistration
- String? deviceId,
- String? deviceDisplayName,
- String? platform,
- String? deviceManufacturer,
- String? hardware,
- String? deviceModel,
- String? sdk,
Create a DeviceRegistration which can be used to configure this device for deployment.
Override this method to configure device-specific registration options, if any.
toJson
Return a JSON encoding of this object.