Class DefaultDeviceDescription

    • Constructor Detail

      • DefaultDeviceDescription

        public 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.
        Parameters:
        uri - device URI
        type - device type
        manufacturer - device manufacturer
        hwVersion - device HW version
        swVersion - device SW version
        serialNumber - device serial number
        chassis - chassis id
        annotations - optional key/value annotations map
      • DefaultDeviceDescription

        public 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.
        Parameters:
        uri - device URI
        type - device type
        manufacturer - device manufacturer
        hwVersion - device HW version
        swVersion - device SW version
        serialNumber - device serial number
        chassis - chassis id
        defaultAvailable - optional whether device is by default available
        annotations - optional key/value annotations map
      • DefaultDeviceDescription

        public DefaultDeviceDescription​(DeviceDescription base,
                                        SparseAnnotations... annotations)
        Creates a device description using the supplied information.
        Parameters:
        base - DeviceDescription to basic information
        annotations - Annotations to use.
      • DefaultDeviceDescription

        public DefaultDeviceDescription​(DeviceDescription base,
                                        Device.Type type,
                                        SparseAnnotations... annotations)
        Creates a device description using the supplied information.
        Parameters:
        base - DeviceDescription to basic information (except for type)
        type - device type
        annotations - Annotations to use.
      • DefaultDeviceDescription

        public DefaultDeviceDescription​(DeviceDescription base,
                                        boolean defaultAvailable,
                                        SparseAnnotations... annotations)
        Creates a device description using the supplied information.
        Parameters:
        base - DeviceDescription to basic information (except for defaultAvailable)
        defaultAvailable - whether device should be made available by default
        annotations - Annotations to use.
    • Method Detail

      • deviceUri

        public java.net.URI deviceUri()
        Description copied from interface: DeviceDescription
        Protocol/provider specific URI that can be used to encode the identity information required to communicate with the device externally, e.g. datapath ID.
        Specified by:
        deviceUri in interface DeviceDescription
        Returns:
        provider specific URI for the device
      • manufacturer

        public java.lang.String manufacturer()
        Description copied from interface: DeviceDescription
        Returns the device manufacturer name.
        Specified by:
        manufacturer in interface DeviceDescription
        Returns:
        manufacturer name
      • hwVersion

        public java.lang.String hwVersion()
        Description copied from interface: DeviceDescription
        Returns the device hardware version.
        Specified by:
        hwVersion in interface DeviceDescription
        Returns:
        hardware version
      • swVersion

        public java.lang.String swVersion()
        Description copied from interface: DeviceDescription
        Returns the device software version.
        Specified by:
        swVersion in interface DeviceDescription
        Returns:
        software version
      • isDefaultAvailable

        public boolean isDefaultAvailable()
        Description copied from interface: DeviceDescription
        Return whether device should be made available by default.
        Specified by:
        isDefaultAvailable in interface DeviceDescription
        Returns:
        default availability
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object