PrimaryDeviceConfiguration
A device which aggregates, synchronizes, and optionally uploads incoming data received from one or more connected devices (potentially just itself).
Add one with StudyProtocol.addPrimaryDevice; a protocol needs at least one before it can be deployed. In CARP Mobile Sensing this is the phone (Smartphone). Each primary device receives its own PrimaryDeviceDeployment. The constructor sets isOptional to false.
- Inheritance
-
- Object
- Serializable
- DeviceConfiguration<
TRegistration> - PrimaryDeviceConfiguration
- Implementers
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
PrimaryDeviceConfiguration.fromJson
PrimaryDeviceConfiguration
- required String roleName,
Properties
atStartOfStudy
A new trigger which fires immediately at the start of a study deployment on this device.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
isPrimaryDevice
getter/setter pair
Defaults to true. Only here for (de)serialization: for unknown device types, the JSON tells whether to treat them as primary devices.
Methods
toJson
Return a JSON encoding of this object.