public class DefaultDeviceDescription extends AbstractDescription implements DeviceDescription
| Constructor and Description |
|---|
DefaultDeviceDescription(DeviceDescription base,
SparseAnnotations... annotations)
Creates a device description using the supplied information.
|
DefaultDeviceDescription(URI uri,
Device.Type type,
String manufacturer,
String hwVersion,
String swVersion,
String serialNumber,
org.onlab.packet.ChassisId chassis,
SparseAnnotations... annotations)
Creates a device description using the supplied information.
|
| Modifier and Type | Method and Description |
|---|---|
org.onlab.packet.ChassisId |
chassisId()
Returns a device chassis id.
|
URI |
deviceURI()
Protocol/provider specific URI that can be used to encode the identity
information required to communicate with the device externally, e.g.
|
String |
hwVersion()
Returns the device hardware version.
|
String |
manufacturer()
Returns the device manufacturer name.
|
String |
serialNumber()
Returns the device serial number.
|
String |
swVersion()
Returns the device software version.
|
String |
toString() |
Device.Type |
type()
Returns the type of the infrastructure device.
|
annotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitannotationspublic DefaultDeviceDescription(URI uri, Device.Type type, String manufacturer, String hwVersion, String swVersion, String serialNumber, org.onlab.packet.ChassisId chassis, SparseAnnotations... annotations)
uri - device URItype - device typemanufacturer - device manufacturerhwVersion - device HW versionswVersion - device SW versionserialNumber - device serial numberchassis - chasis idannotations - optional key/value annotations mappublic DefaultDeviceDescription(DeviceDescription base, SparseAnnotations... annotations)
base - DeviceDescription to basic informationannotations - Annotations to use.public URI deviceURI()
DeviceDescriptiondeviceURI in interface DeviceDescriptionpublic Device.Type type()
DeviceDescriptiontype in interface DeviceDescriptionpublic String manufacturer()
DeviceDescriptionmanufacturer in interface DeviceDescriptionpublic String hwVersion()
DeviceDescriptionhwVersion in interface DeviceDescriptionpublic String swVersion()
DeviceDescriptionswVersion in interface DeviceDescriptionpublic String serialNumber()
DeviceDescriptionserialNumber in interface DeviceDescriptionpublic org.onlab.packet.ChassisId chassisId()
DeviceDescriptionchassisId in interface DeviceDescriptionCopyright © 2015. All rights reserved.