DeviceDataCollectorFactory class abstract

Supports creating and holding a registry of DeviceDataCollectors for devices.

Properties

devices Map<String, DeviceDataCollector>
The devices available in this DeviceDataCollectorFactory mapped to their device type.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createDevice(String deviceType) Future<DeviceDataCollector?>
Create and register a DeviceDataCollector based on a deviceType. Returns null if a device cannot be created.
getDevice(String deviceType) DeviceDataCollector?
Returns the DeviceDataCollector of the given deviceType. Returns null if no device is found.
hasDevice(String deviceType) bool
Returns true if this factory contain a device manager of the given deviceType.
initializeDevice(DeviceDescriptor descriptor) → void
Initialize the device specified in the descriptor.
initializeDevices(MasterDeviceDeployment masterDeviceDeployment) → void
Initialize all devices in a masterDeviceDeployment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDevice(String deviceType, DeviceDataCollector collector) → void
Register and initialize a DeviceDataCollector for a deviceType.
supportsDevice(String deviceType) bool
Returns true if this factory supports a device of the given deviceType. Note that even though a certain type of device is supported, its device DeviceDataCollector is not loaded until registerDevice is called.
toString() String
A string representation of this object.
inherited
unregisterDevice(String deviceType) → void

Operators

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