public abstract class AbstractDeviceProvider extends AbstractProvider implements DeviceProvider
DeviceDescriptionDiscovery
driver behaviour to discover device and port details.
Assumes that derived classes will provide code to learn/generate device identifier. Also assumes that derived classes will either obtain the primordial device information sufficient to locate the correct driver, or that they will know which driver should be used, e.g. from network configuration.
Modifier and Type | Field and Description |
---|---|
protected DriverService |
driverService |
protected org.slf4j.Logger |
log |
protected DeviceProviderRegistry |
providerRegistry |
protected DeviceProviderService |
providerService |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDeviceProvider(ProviderId id)
Creates a provider with the supplied identifier.
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate() |
protected void |
deactivate() |
protected void |
discoverDevice(DriverHandler handler)
Discovers the device details using the device discovery behaviour of
the supplied driver handler context for interacting with a specific
device.
|
id
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changePortState, isReachable, roleChanged, triggerDisconnect, triggerProbe
protected final org.slf4j.Logger log
protected DeviceProviderRegistry providerRegistry
protected DriverService driverService
protected DeviceProviderService providerService
protected AbstractDeviceProvider(ProviderId id)
id
- provider idprotected void activate()
protected void deactivate()
protected void discoverDevice(DriverHandler handler)
handler
- driver handler context