DeviceDeploymentStatus
The status of one device in a study deployment.
Part of StudyDeploymentStatus.deviceStatusList. Tells whether the device is registered or deployed, and which other devices must be registered first.
- Inheritance
-
- Object
- Serializable
- DeviceDeploymentStatus
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
DeviceDeploymentStatus.fromJson
DeviceDeploymentStatus
- required DeviceConfiguration<
DeviceRegistration> device,
Properties
canBeDeployed
Determines whether the device can be deployed by retrieving a PrimaryDeviceDeployment.
Only primary devices can be deployed. However, not all primary devices necessarily need deployment; chained primary devices do not.
Is null if already deployed, i.e., status is DeviceDeploymentStatusTypes.Deployed.
canObtainDeviceDeployment
Determines whether the device requires a device deployment, and if so, whether the deployment configuration (to initialize the device environment) can be obtained. This requires the specified device and all other primary devices it depends on to be registered.
device
The description of the device.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
isReadyForDeployment
Determines whether the device and all dependent devices have been registered successfully and is ready for deployment.
jsonType
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
remainingDevicesToRegisterBeforeDeployment
The role names of devices which need to be registered before this device can be declared as successfully deployed.
remainingDevicesToRegisterToObtainDeployment
The role names of devices which need to be registered before the deployment information for this device can be obtained.
status
- @JsonKey(includeFromJson: false, includeToJson: false)
Get the status of this device deployment:
- Unregistered
- Registered
- Deployed
- NeedsRedeployment
Methods
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.