public interface DeviceDriverProvider
DeviceInfo
, DeviceHandler
and DeviceLoader
instances, backed by
implementations appropriate to the requested type of device.Modifier and Type | Method and Description |
---|---|
DeviceHandler |
create(DeviceInfo info,
IpAddress ip)
Creates an instance of DeviceHandler, bound to the specified device target, and associated with
the specified instance of DeviceInfo.
|
DeviceLoader |
create(DeviceInfo info,
String uid)
Creates an instance of DeviceLoader, bound to the specified device UID, and associated with
the specified instance of DeviceInfo.
|
DeviceInfo |
create(String typeName)
Creates an instance of DeviceInfo backed by the specified device type and void of any specific device
information.
|
DeviceHandler |
create(String typeName,
IpAddress ip)
Creates an instance of DeviceHandler, bound to the specified device target, and associated with
a new instance of DeviceInfo backed by the specified device type and void of any specific device information.
|
DeviceLoader |
create(String typeName,
String uid)
Creates an instance of DeviceLoader, bound to the specified device UID, and associated with
a new instance of DeviceInfo backed by the specified device type.
|
Set<String> |
getDeviceTypeNames()
Returns a set of device type names for which this provider can create instances of
DeviceInfo , DeviceHandler and DeviceLoader . |
void |
switchType(MutableDeviceInfo mutableDeviceInfo,
String newTypeName)
Given a device info instance and a type name, replace the backing device type in that instance,
with the named device type.
|
Set<String> getDeviceTypeNames()
DeviceInfo
, DeviceHandler
and DeviceLoader
.DeviceInfo create(String typeName)
typeName
- the name of the required device typeDeviceHandler create(String typeName, IpAddress ip)
typeName
- the name of the required device typeip
- the device IP addressDeviceHandler create(DeviceInfo info, IpAddress ip)
info
- the device info instanceip
- the device IP addressDeviceLoader create(String typeName, String uid)
typeName
- the name of the required device typeuid
- the key by which the set of information describing the device can be looked up
in the persistence storeDeviceLoader create(DeviceInfo info, String uid)
info
- the device info instanceuid
- the key by which the set of information describing the device can be looked up
in the persistence storevoid switchType(MutableDeviceInfo mutableDeviceInfo, String newTypeName)
mutableDeviceInfo
- the device info to be adjustednewTypeName
- the name of the replacement device typeCopyright © 2015. All Rights Reserved.