MasterDeviceDeployment class

Contains the entire description and configuration for how a single master device participates in running a study.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

MasterDeviceDeployment({required MasterDeviceDescriptor deviceDescriptor, required DeviceRegistration configuration, List<DeviceDescriptor> connectedDevices = const [], Map<String, DeviceRegistration?> connectedDeviceConfigurations = const {}, List<TaskDescriptor> tasks = const [], Map<String, Trigger> triggers = const {}, List<TriggeredTask> triggeredTasks = const []})
MasterDeviceDeployment.fromJson(Map<String, dynamic> json)
factory

Properties

configuration DeviceRegistration
Configuration for this master device.
getter/setter pair
connectedDeviceConfigurations Map<String, DeviceRegistration?>
Preregistration of connected devices, including configuration such as connection properties, stored per role name.
getter/setter pair
connectedDevices List<DeviceDescriptor>
The devices this device needs to connect to.
getter/setter pair
deviceDescriptor MasterDeviceDescriptor
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastUpdateDate DateTime
The time when this device deployment was last updated.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tasks List<TaskDescriptor>
All tasks which should be able to be executed on this or connected devices.
getter/setter pair
triggeredTasks List<TriggeredTask>
The specification of tasks triggered and the devices they are sent to.
getter/setter pair
triggers Map<String, Trigger>
All triggers originating from this device and connected devices, stored per assigned id unique within the study protocol.
getter/setter pair

Methods

getTaskByName(String name) TaskDescriptor?
Get the task based on its task name in this deployment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited