addStudy method

Future<void> addStudy(
  1. Study study,
  2. DeviceRegistration deviceRegistration
)
inherited

Adds study this study runtime by specifying its study and deviceRegistration.

deviceRegistration is the device configuration for the device this study runtime runs on, identified by Study.deviceRoleName in the study deployment with Study.studyDeploymentId.

Call tryDeployment to subsequently deploy the study.

Implementation

Future<void> addStudy(
  Study study,
  TRegistration deviceRegistration,
) async {
  _study = study;
  study.status = StudyStatus.DeploymentNotStarted;
  _deviceRegistration = deviceRegistration;
}