Interface ForwardingDevice

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.onosproject.net.Device

        Device.Type
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default Annotations annotations()
      Returns the key/value annotations.
      default <B extends Behaviour>
      B
      as​(java.lang.Class<B> projectionClass)
      Returns the specified projection of this entity if such projection is supported.
      default ChassisId chassisId()
      Returns the device chassis id.
      Device delegate()  
      default java.lang.String hwVersion()
      Returns the device hardware version.
      default DeviceId id()
      Returns the device identifier.
      default <B extends Behaviour>
      boolean
      is​(java.lang.Class<B> projectionClass)
      Returns true if this entity is capable of being projected as the specified class.
      default java.lang.String manufacturer()
      Returns the device manufacturer name.
      default ProviderId providerId()
      Returns the identifier of the provider which supplied the entity.
      default java.lang.String serialNumber()
      Returns the device serial number.
      default java.lang.String swVersion()
      Returns the device software version.
      default Device.Type type()
      Returns the type of the infrastructure device.
    • Method Detail

      • annotations

        default Annotations annotations()
        Description copied from interface: Annotated
        Returns the key/value annotations.
        Specified by:
        annotations in interface Annotated
        Returns:
        key/value annotations
      • providerId

        default ProviderId providerId()
        Description copied from interface: Provided
        Returns the identifier of the provider which supplied the entity.
        Specified by:
        providerId in interface Provided
        Returns:
        provider identification
      • as

        default <B extends Behaviour> B as​(java.lang.Class<B> projectionClass)
        Description copied from interface: Projectable
        Returns the specified projection of this entity if such projection is supported.
        Specified by:
        as in interface Projectable
        Type Parameters:
        B - type of behaviour
        Parameters:
        projectionClass - requested projection class
        Returns:
        projection instance
      • id

        default DeviceId id()
        Description copied from interface: Device
        Returns the device identifier.
        Specified by:
        id in interface Device
        Specified by:
        id in interface Element
        Returns:
        device id
      • type

        default Device.Type type()
        Description copied from interface: Device
        Returns the type of the infrastructure device.
        Specified by:
        type in interface Device
        Returns:
        type of the device
      • is

        default <B extends Behaviour> boolean is​(java.lang.Class<B> projectionClass)
        Description copied from interface: Projectable
        Returns true if this entity is capable of being projected as the specified class.
        Specified by:
        is in interface Projectable
        Type Parameters:
        B - type of behaviour
        Parameters:
        projectionClass - requested projection class
        Returns:
        true if the requested projection is supported
      • manufacturer

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

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

        default java.lang.String swVersion()
        Description copied from interface: Device
        Returns the device software version.
        Specified by:
        swVersion in interface Device
        Returns:
        software version
      • serialNumber

        default java.lang.String serialNumber()
        Description copied from interface: Device
        Returns the device serial number.
        Specified by:
        serialNumber in interface Device
        Returns:
        serial number
      • chassisId

        default ChassisId chassisId()
        Description copied from interface: Device
        Returns the device chassis id.
        Specified by:
        chassisId in interface Device
        Returns:
        chassis id