public interface DeviceType
Note also that instances of device type are somewhat hidden from external consumers of
DeviceInfo
. They do work on behalf of specific device info instances, under the covers.
Modifier and Type | Method and Description |
---|---|
DeviceHandler |
createHandler(DeviceInfo info,
IpAddress ip)
Return a device handler appropriate for this device type.
|
DeviceLoader |
createLoader(DeviceInfo info,
String uid)
Return a device handler appropriate for this device type.
|
DeviceInfo |
evolve(DeviceInfo deviceInfo)
Return an evolved device info context.
|
Set<? extends DeviceType> |
getChildTypes()
Returns the device types that extend this device type directly.
|
String |
getDescription()
Returns the description of this device type.
|
String |
getModel()
Gets the model number associated with this type belongs.
|
String |
getOrigin()
Returns the origin of this device type (i.e.
|
DeviceType |
getParentType()
Returns the device type that this type extends (or null if no parent).
|
String |
getProduct()
Returns the product number associated with this device type.
|
DeviceDriverProvider |
getProvider()
Returns the provider instance that created this device type.
|
String |
getTypeName()
Returns the name of this device type.
|
String getTypeName()
DeviceDriverProvider getProvider()
String getDescription()
String getOrigin()
String getProduct()
String getModel()
DeviceType getParentType()
Set<? extends DeviceType> getChildTypes()
DeviceInfo evolve(DeviceInfo deviceInfo)
Note: implementations should use DeviceDriverProvider.switchType(com.hp.device.MutableDeviceInfo, java.lang.String)
if it is determined that the device type needs to change.
deviceInfo
- the info to evolveDeviceHandler createHandler(DeviceInfo info, IpAddress ip)
info
- the device info contextip
- the IP address to bind toDeviceLoader createLoader(DeviceInfo info, String uid)
info
- the device info contextuid
- the unique identifier to bind toCopyright © 2016. All Rights Reserved.