SmartphoneDeploymentService class
A local (in-memory) implementation of a DeploymentService
useful in
CAMS studies to be deployed locally on this phone.
Constructors
- SmartphoneDeploymentService.new()
-
Get the singleton SmartphoneDeploymentService.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thisPhone ↔ Smartphone
-
The device description for this phone.
getter/setter pair
Methods
-
createStudyDeployment(
StudyProtocol protocol, [String? studyDeploymentId]) → Future< StudyDeploymentStatus> -
Create a new
StudyDeployment
based on aStudyProtocol
.studyDeploymentId
specifies the study deployment id. If not specified, an UUID v1 id is generated.override -
deploymentSuccessful(
String studyDeploymentId, {DateTime? deviceDeploymentLastUpdateDate}) → Future< StudyDeploymentStatus> -
Mark the study deployment with
studyDeploymentId
as deployed successfully to this master device (phone), i.e., that the study deployment was loaded on the device and that the necessary runtime is available to run it. -
deploymentSuccessfulFor(
String studyDeploymentId, String masterDeviceRoleName, DateTime? deviceDeploymentLastUpdateDate) → Future< StudyDeploymentStatus> -
Indicate to stakeholders in the study deployment with
studyDeploymentId
that the device withmasterDeviceRoleName
was deployed successfully, using the deployment with the specifieddeviceDeploymentLastUpdateDate
, i.e., that the study deployment was loaded on the device and that the necessary runtime is available to run it.override -
getDeviceDeployment(
String studyDeploymentId) → Future< SmartphoneDeployment> -
Get a deployment configuration for this master device (phone)
for
studyDeploymentId
. -
getDeviceDeploymentFor(
String studyDeploymentId, String masterDeviceRoleName) → Future< SmartphoneDeployment> -
Get the deployment configuration for the master device with
masterDeviceRoleName
in the study deployment withstudyDeploymentId
.override -
getStudyDeploymentStatus(
String studyDeploymentId) → Future< StudyDeploymentStatus> -
Get the status for a study deployment with the given
studyDeploymentId
.override -
getStudyDeploymentStatusList(
List< String> studyDeploymentIds) → Future<List< StudyDeploymentStatus> > -
Get the statuses for a set of deployments with the specified
studyDeploymentIds
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerDevice(
String studyDeploymentId, String deviceRoleName, DeviceRegistration registration) → Future< StudyDeploymentStatus> -
Register the device with the specified
deviceRoleName
for the study deployment withstudyDeploymentId
.override -
removeStudyDeployments(
Set< String> studyDeploymentIds) → Future<Set< String> > -
Remove study deployments with the given
studyDeploymentIds
.override -
stop(
String studyDeploymentId) → Future< StudyDeploymentStatus> -
Stop the study deployment with
studyDeploymentId
.override -
toString(
) → String -
A string representation of this object.
override
-
unregisterDevice(
String studyDeploymentId, String deviceRoleName) → Future< StudyDeploymentStatus> -
Unregister the device with the specified
deviceRoleName
for the study deployment withstudyDeploymentId
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited