status property

Get the status of this StudyDeployment.

Implementation

StudyDeploymentStatus get status {
  // set the status of each device - both master and connected devices
  _status.devicesStatus = [];
  for (var deviceDescriptor in protocol.masterDevices) {
    _status.devicesStatus.add(getDeviceStatus(deviceDescriptor));
  }
  for (var deviceDescriptor in protocol.connectedDevices) {
    _status.devicesStatus.add(getDeviceStatus(deviceDescriptor));
  }

  // TODO - check that all devices are ready, before setting the overall status
  return _status;
}