public interface Driver extends Annotations
Annotations
.Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Class<? extends Behaviour>> |
behaviours()
Returns the set of behaviours supported by this driver.
|
<T extends Behaviour> |
createBehaviour(DriverData data,
java.lang.Class<T> behaviourClass)
Creates an instance of behaviour primed with the specified driver data.
|
<T extends Behaviour> |
createBehaviour(DriverHandler handler,
java.lang.Class<T> behaviourClass)
Creates an instance of behaviour primed with the specified driver handler.
|
java.lang.String |
getProperty(java.lang.String name)
Gets the value of given property name.
|
boolean |
hasBehaviour(java.lang.Class<? extends Behaviour> behaviourClass)
Indicates whether or not the driver, or any of its parents, support
the specified class of behaviour.
|
java.lang.String |
hwVersion()
Returns the device hardware version.
|
java.lang.Class<? extends Behaviour> |
implementation(java.lang.Class<? extends Behaviour> behaviour)
Returns the implementation class for the specified behaviour.
|
java.lang.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.
|
java.lang.String |
name()
Returns the driver name.
|
Driver |
parent()
Deprecated.
1.5.0 Falcon Release
|
java.util.List<Driver> |
parents()
Returns all the parent drivers from which this driver inherits behaviours
and properties.
|
java.util.Map<java.lang.String,java.lang.String> |
properties()
Returns the set of annotations as map of key/value properties.
|
java.lang.String |
swVersion()
Returns the device software version.
|
keys, value
java.lang.String name()
@Deprecated Driver parent()
java.util.List<Driver> parents()
java.lang.String manufacturer()
java.lang.String hwVersion()
java.lang.String swVersion()
java.util.Set<java.lang.Class<? extends Behaviour>> behaviours()
java.lang.Class<? extends Behaviour> implementation(java.lang.Class<? extends Behaviour> behaviour)
behaviour
- behaviour interfaceboolean hasBehaviour(java.lang.Class<? extends Behaviour> behaviourClass)
behaviourClass
- behaviour class<T extends Behaviour> T createBehaviour(DriverData data, java.lang.Class<T> behaviourClass)
T
- type of behaviourdata
- driver data contextbehaviourClass
- driver behaviour class<T extends Behaviour> T createBehaviour(DriverHandler handler, java.lang.Class<T> behaviourClass)
T
- type of behaviourhandler
- driver handler contextbehaviourClass
- driver behaviour classjava.util.Map<java.lang.String,java.lang.String> properties()
java.lang.String getProperty(java.lang.String name)
name
- property name