| Package | Description |
|---|---|
| org.onosproject.net.driver |
Set of facilities to allow the platform to be extended with
device specific behaviours and to allow modeling device behaviours while
hiding details of specific device driver implementations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultDriver
Default implementation of extensible driver.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Driver> |
DefaultDriverProvider.drivers |
| Modifier and Type | Method and Description |
|---|---|
Driver |
DriverHandler.driver()
Returns the parent device driver.
|
Driver |
DriverData.driver()
Returns the parent device driver.
|
Driver |
DefaultDriverHandler.driver() |
Driver |
DefaultDriverData.driver() |
Driver |
DriverService.getDriver(DeviceId deviceId)
Returns the driver for the specified device.
|
Driver |
DriverResolver.getDriver(String driverName)
Returns the specified driver.
|
Driver |
DriverService.getDriver(String mfr,
String hw,
String sw)
Returns the driver that matches the specified primordial device
discovery information.
|
Driver |
Driver.merge(Driver other)
Merges the specified driver behaviours and properties into this one,
giving preference to the other driver when dealing with conflicts.
|
Driver |
DefaultDriver.merge(Driver other) |
Driver |
Driver.parent()
Returns the parent driver from which this driver inherits behaviours
and properties.
|
Driver |
DefaultDriver.parent() |
| Modifier and Type | Method and Description |
|---|---|
Set<Driver> |
DriverService.getDrivers()
Returns the overall set of drivers being provided.
|
Set<Driver> |
DriverProvider.getDrivers()
Returns the set of driver types and behaviour implementations to be
made available by this provider.
|
Set<Driver> |
DefaultDriverProvider.getDrivers() |
Set<Driver> |
DriverService.getDrivers(Class<? extends Behaviour> withBehaviour)
Returns the set of drivers which support the specified behaviour.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultDriverProvider.addDriver(Driver driver)
Adds the specified driver to the provider.
|
Driver |
Driver.merge(Driver other)
Merges the specified driver behaviours and properties into this one,
giving preference to the other driver when dealing with conflicts.
|
Driver |
DefaultDriver.merge(Driver other) |
void |
DefaultDriverProvider.removeDriver(Driver driver)
Removes the specified driver from the provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultDriverProvider.addDrivers(Set<Driver> drivers)
Adds the specified drivers to the provider.
|
void |
DefaultDriverProvider.removeDrivers(Set<Driver> drivers)
Removes the specified drivers from the provider.
|
| Constructor and Description |
|---|
DefaultDriver(String name,
Driver parent,
String manufacturer,
String hwVersion,
String swVersion,
Map<Class<? extends Behaviour>,Class<? extends Behaviour>> behaviours,
Map<String,String> properties)
Creates a driver with the specified name.
|
DefaultDriverData(Driver driver,
DeviceId deviceId)
Creates new driver data.
|
Copyright © 2015. All rights reserved.