public interface Driver extends Annotations
Annotations.| Modifier and Type | Method and Description |
|---|---|
Set<Class<? extends Behaviour>> |
behaviours()
Returns the set of behaviours supported by this driver.
|
<T extends Behaviour> |
createBehaviour(DriverData data,
Class<T> behaviourClass)
Creates an instance of behaviour primed with the specified driver data.
|
<T extends Behaviour> |
createBehaviour(DriverHandler handler,
Class<T> behaviourClass)
Creates an instance of behaviour primed with the specified driver handler.
|
boolean |
hasBehaviour(Class<? extends Behaviour> behaviourClass)
Indicates whether or not the driver, or any of its parents, support
the specified class of behaviour.
|
String |
hwVersion()
Returns the device hardware version.
|
Class<? extends Behaviour> |
implementation(Class<? extends Behaviour> behaviour)
Returns the implementation class for the specified behaviour.
|
String |
manufacturer()
Returns the device manufacturer name.
|
Driver |
merge(Driver other)
Merges the specified driver behaviours and properties into this one,
giving preference to the other driver when dealing with conflicts.
|
String |
name()
Returns the driver name.
|
Driver |
parent()
Deprecated.
1.5.0 Falcon Release
|
List<Driver> |
parents()
Returns all the parent drivers from which this driver inherits behaviours
and properties.
|
Map<String,String> |
properties()
Returns the set of annotations as map of key/value properties.
|
String |
swVersion()
Returns the device software version.
|
keys, valueString name()
@Deprecated Driver parent()
List<Driver> parents()
String manufacturer()
String hwVersion()
String swVersion()
Set<Class<? extends Behaviour>> behaviours()
Class<? extends Behaviour> implementation(Class<? extends Behaviour> behaviour)
behaviour - behaviour interfaceboolean hasBehaviour(Class<? extends Behaviour> behaviourClass)
behaviourClass - behaviour class<T extends Behaviour> T createBehaviour(DriverData data, Class<T> behaviourClass)
T - type of behaviourdata - driver data contextbehaviourClass - driver behaviour class<T extends Behaviour> T createBehaviour(DriverHandler handler, Class<T> behaviourClass)
T - type of behaviourhandler - driver handler contextbehaviourClass - driver behaviour classMap<String,String> properties()