public class DefaultDeviceDescription extends AbstractDescription implements DeviceDescription
| Constructor and Description |
|---|
DefaultDeviceDescription(DeviceDescription base,
boolean defaultAvailable,
SparseAnnotations... annotations)
Creates a device description using the supplied information.
|
DefaultDeviceDescription(DeviceDescription base,
Device.Type type,
SparseAnnotations... annotations)
Creates a device description using the supplied information.
|
DefaultDeviceDescription(DeviceDescription base,
SparseAnnotations... annotations)
Creates a device description using the supplied information.
|
DefaultDeviceDescription(java.net.URI uri,
Device.Type type,
java.lang.String manufacturer,
java.lang.String hwVersion,
java.lang.String swVersion,
java.lang.String serialNumber,
ChassisId chassis,
boolean defaultAvailable,
SparseAnnotations... annotations)
Creates a device description using the supplied information.
|
DefaultDeviceDescription(java.net.URI uri,
Device.Type type,
java.lang.String manufacturer,
java.lang.String hwVersion,
java.lang.String swVersion,
java.lang.String serialNumber,
ChassisId chassis,
SparseAnnotations... annotations)
Creates a device description using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
ChassisId |
chassisId()
Returns a device chassis id.
|
java.net.URI |
deviceUri()
Protocol/provider specific URI that can be used to encode the identity
information required to communicate with the device externally, e.g.
|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
java.lang.String |
hwVersion()
Returns the device hardware version.
|
boolean |
isDefaultAvailable()
Return whether device should be made available by default.
|
java.lang.String |
manufacturer()
Returns the device manufacturer name.
|
java.lang.String |
serialNumber()
Returns the device serial number.
|
java.lang.String |
swVersion()
Returns the device software version.
|
java.lang.String |
toString() |
Device.Type |
type()
Returns the type of the infrastructure device.
|
annotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationspublic DefaultDeviceDescription(java.net.URI uri,
Device.Type type,
java.lang.String manufacturer,
java.lang.String hwVersion,
java.lang.String swVersion,
java.lang.String serialNumber,
ChassisId chassis,
SparseAnnotations... annotations)
uri - device URItype - device typemanufacturer - device manufacturerhwVersion - device HW versionswVersion - device SW versionserialNumber - device serial numberchassis - chassis idannotations - optional key/value annotations mappublic DefaultDeviceDescription(java.net.URI uri,
Device.Type type,
java.lang.String manufacturer,
java.lang.String hwVersion,
java.lang.String swVersion,
java.lang.String serialNumber,
ChassisId chassis,
boolean defaultAvailable,
SparseAnnotations... annotations)
uri - device URItype - device typemanufacturer - device manufacturerhwVersion - device HW versionswVersion - device SW versionserialNumber - device serial numberchassis - chassis iddefaultAvailable - optional whether device is by default availableannotations - optional key/value annotations mappublic DefaultDeviceDescription(DeviceDescription base, SparseAnnotations... annotations)
base - DeviceDescription to basic informationannotations - Annotations to use.public DefaultDeviceDescription(DeviceDescription base, Device.Type type, SparseAnnotations... annotations)
base - DeviceDescription to basic information (except for type)type - device typeannotations - Annotations to use.public DefaultDeviceDescription(DeviceDescription base, boolean defaultAvailable, SparseAnnotations... annotations)
base - DeviceDescription to basic information (except for defaultAvailable)defaultAvailable - whether device should be made available by defaultannotations - Annotations to use.public java.net.URI deviceUri()
DeviceDescriptiondeviceUri in interface DeviceDescriptionpublic Device.Type type()
DeviceDescriptiontype in interface DeviceDescriptionpublic java.lang.String manufacturer()
DeviceDescriptionmanufacturer in interface DeviceDescriptionpublic java.lang.String hwVersion()
DeviceDescriptionhwVersion in interface DeviceDescriptionpublic java.lang.String swVersion()
DeviceDescriptionswVersion in interface DeviceDescriptionpublic java.lang.String serialNumber()
DeviceDescriptionserialNumber in interface DeviceDescriptionpublic ChassisId chassisId()
DeviceDescriptionchassisId in interface DeviceDescriptionpublic boolean isDefaultAvailable()
DeviceDescriptionisDefaultAvailable in interface DeviceDescriptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class AbstractDescriptionpublic boolean equals(java.lang.Object object)
equals in class AbstractDescription