public interface DeviceIdentityHandler extends DeviceIdentity, HandlerFacet
Facet
that provides read-write access concerning a device's identity.Modifier and Type | Method and Description |
---|---|
void |
digest(Object memento)
Accepts an opaque memento containing device identity information,
presumably obtained from a prior communication with the device.
|
DeviceInfo |
evolve()
Return an evolved device info context.
|
void |
generateUniqueId()
Generates a globally unique device ID using device specific information
and a type-specific algorithm and stamps it into the associated device
info entity.
|
void |
setContact(String contact)
Set the device contact.
|
void |
setLocation(String location)
Set the device location.
|
void |
setName(String name)
Set the device name.
|
getContact, getDescription, getDriverFirmwareVersion, getFamily, getFirmwareVersion, getIpAddress, getLocation, getModelNumber, getName, getProductNumber, getSerialNumber, getUniqueId, getVendor
apply, fetch, getIpAddress, setIpAddress
getContext, getTypeName
void setName(String name)
name
- the device namevoid setLocation(String location)
location
- the device locationvoid setContact(String contact)
contact
- the device contactvoid generateUniqueId()
void digest(Object memento)
HandlerFacet.fetch()
method)
to the device in order to obtain the same information.
Implementations are to interpret and digest the information in this memento into the associated device info instance.
memento
- opaque container of device identity informationDeviceInfo evolve()
Note: implementations should use DeviceDriverProvider.switchType(com.hp.device.MutableDeviceInfo, java.lang.String)
if it is determined that the device type needs to change.
Copyright © 2015. All Rights Reserved.