Package org.onosproject.net.utils
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>
Bas(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>
booleanis(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.-
Methods inherited from interface org.onosproject.net.driver.Projectable
project
-
-
-
-
Method Detail
-
delegate
Device delegate()
-
annotations
default Annotations annotations()
Description copied from interface:Annotated
Returns the key/value annotations.- Specified by:
annotations
in interfaceAnnotated
- 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 interfaceProvided
- 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 interfaceProjectable
- Type Parameters:
B
- type of behaviour- Parameters:
projectionClass
- requested projection class- Returns:
- projection instance
-
type
default Device.Type type()
Description copied from interface:Device
Returns the type of the infrastructure 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 interfaceProjectable
- 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 interfaceDevice
- Returns:
- manufacturer name
-
hwVersion
default java.lang.String hwVersion()
Description copied from interface:Device
Returns the device hardware version.
-
swVersion
default java.lang.String swVersion()
Description copied from interface:Device
Returns the device software version.
-
serialNumber
default java.lang.String serialNumber()
Description copied from interface:Device
Returns the device serial number.- Specified by:
serialNumber
in interfaceDevice
- Returns:
- serial number
-
-