requiredDataStreams property
DataStreamsConfiguration
get
requiredDataStreams
All the data streams which are required to run this study deployment.
Implementation
DataStreamsConfiguration get requiredDataStreams {
Set<ExpectedDataStream> streams = {};
for (var device in protocol.devices) {
for (var task in protocol.getTasksForDevice(device)) {
if (task != null) {
for (var type in task.getAllExpectedDataTypes()) {
streams.add(ExpectedDataStream(
dataType: type,
deviceRoleName: device.roleName,
));
}
}
}
}
return DataStreamsConfiguration(
studyDeploymentId: studyDeploymentId,
expectedDataStreams: streams,
);
}