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 Annotationsannotations()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 ChassisIdchassisId()Returns the device chassis id.Devicedelegate()default java.lang.StringhwVersion()Returns the device hardware version.default DeviceIdid()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.Stringmanufacturer()Returns the device manufacturer name.default ProviderIdproviderId()Returns the identifier of the provider which supplied the entity.default java.lang.StringserialNumber()Returns the device serial number.default java.lang.StringswVersion()Returns the device software version.default Device.Typetype()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:AnnotatedReturns the key/value annotations.- Specified by:
annotationsin interfaceAnnotated- Returns:
- key/value annotations
-
providerId
default ProviderId providerId()
Description copied from interface:ProvidedReturns the identifier of the provider which supplied the entity.- Specified by:
providerIdin interfaceProvided- Returns:
- provider identification
-
as
default <B extends Behaviour> B as(java.lang.Class<B> projectionClass)
Description copied from interface:ProjectableReturns the specified projection of this entity if such projection is supported.- Specified by:
asin interfaceProjectable- Type Parameters:
B- type of behaviour- Parameters:
projectionClass- requested projection class- Returns:
- projection instance
-
type
default Device.Type type()
Description copied from interface:DeviceReturns the type of the infrastructure device.
-
is
default <B extends Behaviour> boolean is(java.lang.Class<B> projectionClass)
Description copied from interface:ProjectableReturns true if this entity is capable of being projected as the specified class.- Specified by:
isin 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:DeviceReturns the device manufacturer name.- Specified by:
manufacturerin interfaceDevice- Returns:
- manufacturer name
-
hwVersion
default java.lang.String hwVersion()
Description copied from interface:DeviceReturns the device hardware version.
-
swVersion
default java.lang.String swVersion()
Description copied from interface:DeviceReturns the device software version.
-
serialNumber
default java.lang.String serialNumber()
Description copied from interface:DeviceReturns the device serial number.- Specified by:
serialNumberin interfaceDevice- Returns:
- serial number
-
-