StudyDeployment class
A single instantiation of a StudyProtocol, taking care of common concerns related to devices when 'running' a study.
I.e., a StudyDeployment is responsible for registering the physical devices described in the StudyProtocol, enabling a connection between them, tracking device connection issues, and assessing data quality.
Constructors
- StudyDeployment(StudyProtocol protocol, [String? studyDeploymentId])
-
Create a new StudyDeployment based on a StudyProtocol.
studyDeploymentId
specify the study deployment id. If not specified, an UUID v1 id is generated.
Properties
- creationDate → DateTime
-
no setter
-
deployedDevices
→ Set<
String?> -
The set of devices (role names) which have been deployed correctly.
no setter
-
deviceRegistrationHistory
→ Map<
DeviceConfiguration< DeviceRegistration> , List<DeviceRegistration> > -
Per device, a list of all device registrations (included old registrations)
in the order they were registered.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
invalidatedDeployedDevices
→ Set<
DeviceConfiguration< DeviceRegistration> > -
no setter
- isStopped → bool
-
Determines whether the study deployment has been stopped and no
further modifications are allowed.
no setter
- protocol → StudyProtocol
-
no setter
-
registeredDevices
→ Map<
DeviceConfiguration< DeviceRegistration> , DeviceRegistration> -
The set of devices which are currently registered for this study deployment.
no setter
- requiredDataStreams → DataStreamsConfiguration
-
All the data streams which are required to run this study deployment.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime?
-
The time when the study deployment was ready for the first
time (all devices deployed); null otherwise.
no setter
- status → StudyDeploymentStatus
-
Get the status of this StudyDeployment.
no setter
- studyDeploymentId → String
-
no setter
Methods
-
deviceDeployed(
PrimaryDeviceConfiguration< DeviceRegistration> device, DateTime deviceDeploymentLastUpdateDate) → void -
Indicate that the specified primary
device
was deployed successfully using the deployment with the specifieddeviceDeploymentLastUpdateDate
. -
getDeviceDeploymentFor(
PrimaryDeviceConfiguration< DeviceRegistration> device) → PrimaryDeviceDeployment -
Get the deployment configuration for the specified primary
device
in this study deployment. -
getDeviceStatus(
DeviceConfiguration< DeviceRegistration> device) → DeviceDeploymentStatus - Get the status of a device in this StudyDeployment.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerDevice(
DeviceConfiguration< DeviceRegistration> device, DeviceRegistration registration) → void -
Register the specified
device
for this deployment using theregistration
options. -
stop(
) → void - Stop this study deployment. No further changes to this deployment are allowed and no more data should be collected.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregisterDevice(
DeviceConfiguration< DeviceRegistration> device) → void -
Remove the current device registration for the
device
in this deployment.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited