DeviceDataCollectorFactory class abstract

Supports creating and holding a registry of DeviceDataCollectors for devices.

Properties

devices Map<String, DeviceDataCollector<DeviceConfiguration<DeviceRegistration>>>
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<DeviceConfiguration<DeviceRegistration>>?>
Create and register a DeviceDataCollector based on a deviceType. Returns null if a device cannot be created.
getDevice(String deviceType) DeviceDataCollector<DeviceConfiguration<DeviceRegistration>>?
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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDevice(String deviceType, DeviceDataCollector<DeviceConfiguration<DeviceRegistration>> 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