public class DefaultDeviceIdentity extends AbstractDefaultFacet implements DeviceIdentity
DefaultDeviceInfo
implementation.Constructor and Description |
---|
DefaultDeviceIdentity(DeviceInfo context)
Constructs a device identity facet that is projected onto the specified
device info context.
|
Modifier and Type | Method and Description |
---|---|
String |
getContact()
Returns the contact for this device.
|
String |
getDescription()
Returns the description of this device.
|
String |
getDriverFirmwareVersion()
Returns the firmware version of the device driver
(which is distinct from the version reported by the device via
DeviceIdentity.getFirmwareVersion() ). |
String |
getFamily()
Returns the product family of the device.
|
String |
getFirmwareVersion()
Returns the firmware version of the device.
|
IpAddress |
getIpAddress()
Get the IP address associated with this facet, if any.
|
String |
getLocation()
Returns the location of this device.
|
String |
getModelNumber()
Returns the model number of the device.
|
String |
getName()
Returns the name of this device.
|
String |
getProductNumber()
Returns the product number of the device.
|
String |
getSerialNumber()
Returns the serial number of the device.
|
String |
getUniqueId()
Gets the globally unique device ID generated via
DeviceIdentityHandler.generateUniqueId() . |
String |
getVendor()
Returns the name of the vendor of the device.
|
String |
toDebugString() |
String |
toString() |
getContext
getTypeName, setIpAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getTypeName
public DefaultDeviceIdentity(DeviceInfo context)
context
- the device info of which this is a facetpublic String getUniqueId()
DeviceIdentity
DeviceIdentityHandler.generateUniqueId()
.getUniqueId
in interface DeviceIdentity
public String getVendor()
DeviceIdentity
getVendor
in interface DeviceIdentity
public String getFamily()
DeviceIdentity
getFamily
in interface DeviceIdentity
public String getProductNumber()
DeviceIdentity
getProductNumber
in interface DeviceIdentity
public String getModelNumber()
DeviceIdentity
getModelNumber
in interface DeviceIdentity
public String getSerialNumber()
DeviceIdentity
getSerialNumber
in interface DeviceIdentity
public String getDriverFirmwareVersion()
DeviceIdentity
DeviceIdentity.getFirmwareVersion()
).
Usually these will be the same, but there may be cases where a firmware version is
reported by the device for which we don't have a device driver. In these cases the
driver with the closest matching firmware version will be used.getDriverFirmwareVersion
in interface DeviceIdentity
public String getFirmwareVersion()
DeviceIdentity
getFirmwareVersion
in interface DeviceIdentity
public String getName()
DeviceIdentity
getName
in interface DeviceIdentity
public String getDescription()
DeviceIdentity
getDescription
in interface DeviceIdentity
public String getLocation()
DeviceIdentity
getLocation
in interface DeviceIdentity
public String getContact()
DeviceIdentity
getContact
in interface DeviceIdentity
public IpAddress getIpAddress()
AbstractFacet
getIpAddress
in interface DeviceIdentity
getIpAddress
in class AbstractFacet
public String toDebugString()
Copyright © 2015. All Rights Reserved.