SmartPhoneClientManager class

Inheritance

Constructors

SmartPhoneClientManager({DeploymentService deploymentService, DeviceController deviceRegistry})

Properties

deploymentService DeploymentService
The application service through which study deployments, to be run on this client, can be managed and retrieved.
read / write, inherited
deviceRegistry DeviceController
The registry of connected devices used to collect data locally on this master device. Also works as a factory which is used to create DeviceDataCollector instances for connected devices.
read / write, inherited-setter, override-getter
hashCode int
The hash code for this object. [...]
read-only, inherited
isConfigured bool
Determines whether a DeviceRegistration has been configured for this client, which is necessary to start adding StudyRuntimes.
read-only, inherited
registration DeviceRegistration
The registration of this client device.
read / write, inherited
repository Map<StudyRuntimeId, StudyRuntime>
Repository within which the state of this client is stored.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addStudy(String studyDeploymentId, String deviceRoleName) Future<StudyDeploymentController>
Add a study which needs to be executed on this client. This involves registering this device for the specified study deployment. [...]
override
configure({String deviceId}) Future<DeviceRegistration>
Configure the DeviceRegistration used to register this client device in study deployments managed by the deploymentService.
override
getStudiesStatus() List<StudyRuntimeStatus>
Get the status for the studies which run on this client device.
inherited
getStudyRuntime(StudyRuntimeId studyRuntimeId) StudyRuntime
Get the StudyRuntime with the unique studyRuntimeId.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
stopStudy(StudyRuntimeId studyRuntimeId) → void
Permanently stop collecting data for the study runtime identified by studyRuntimeId.
@mustCallSuper, inherited
toString() String
A string representation of this object. [...]
inherited
tryDeployment(StudyRuntimeId studyRuntimeId) Future<StudyRuntimeStatus>
Verifies whether the device is ready for deployment of the study runtime identified by studyRuntimeId, and in case it is, deploys. In case already deployed, nothing happens.
@mustCallSuper, inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited