StudyDeploymentStatus
The status of a study deployment and of its devices and participants.
Returned by most DeploymentService calls and kept in Study.deploymentStatus on the client. A client reads deviceStatusList to see what is needed before its device can be deployed.
- Inheritance
-
- Object
- Serializable
- StudyDeploymentStatus
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
StudyDeploymentStatus.fromJson
StudyDeploymentStatus
- required String studyDeploymentId,
- List<
DeviceDeploymentStatus> deviceStatusList = const [],
Properties
createdOn
The time when the deployment was created.
deviceStatusList
The list of all devices part of this study deployment and their status.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
jsonType
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
participantStatusList
The list of all participants and their status in this study deployment.
startedOn
The time when the study deployment was ready for the first time (all devices deployed); null otherwise.
status
The status of this study deployment:
- Invited
- DeployingDevices
- Running
- Stopped
When created from CARP Core JSON, it is read from the last part of the __type (e.g. ...StudyDeploymentStatus.Running).
studyDeploymentId
The CARP study deployment ID.
Methods
getDeviceStatus
Get the status of a device in this study deployment.
Throws a StateError if device is not in deviceStatusList.
getDeviceStatusByRoleName
- String roleName
Get the status of a device with the given roleName in this study deployment.
Throws a StateError if no device has roleName.
toJson
Return a JSON encoding of this object.
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.