SmartphoneClient class
Allows managing studies on a smartphone.
- Inheritance
-
- Object
- ClientManager<
Smartphone, DeviceRegistration> - SmartphoneClient
Constructors
Properties
- deploymentService → DeploymentService?
-
The application service through which study deployments, to be run on
this client, can be managed and retrieved.
no setterinherited
- deviceController → DeviceDataCollectorFactory?
-
The controller of connected devices used to collect data locally on
this primary device. Also works as a factory which is used to create
DeviceDataCollector instances for connected devices.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConfigured → bool
-
Determines whether a DeviceRegistration has been configured for this client,
which is necessary to start adding StudyRuntimes.
no setterinherited
- registration ↔ DeviceRegistration?
-
The registration of this client.
getter/setter pairinherited
-
repository
↔ Map<
Study, StudyRuntime< DeviceRegistration> > -
Repository of
StudyRuntime
mapped to aStudy
.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addStudy(
String studyDeploymentId, String deviceRoleName) → Future< Study> -
Add a study which needs to be executed on this client.
This involves registering this device for the specified study deployment.
inherited
-
configure(
{required DeploymentService deploymentService, required DeviceDataCollectorFactory deviceController, DeviceRegistration? registration}) → Future< void> -
Configure this ClientManager by specifying:
inherited
-
getStudyRuntime(
Study study) → StudyRuntime< DeviceRegistration> ? -
Get the StudyRuntime for a
study
.inherited -
getStudyStatusList(
) → List< StudyStatus> -
Get the status for the studies which run on this client device.
inherited
-
lookupStudyRuntime(
String studyDeploymentId, String deviceRoleName) → StudyRuntime< DeviceRegistration> ? -
Lookup the StudyRuntime based on the
studyDeploymentId
anddeviceRoleName
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeStudy(
Study study) → Future< void> -
Remove
study
from this client manager.inherited -
stopStudy(
Study study) → Future< void> -
Permanently stop collecting data for
study
and then remove it.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
tryDeployment(
Study study) → Future< StudyStatus> -
Verifies whether the device is ready for deployment of the study runtime
identified by
study
, and in case it is, deploys. In case already deployed, nothing happens.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited