public abstract class AbstractDriver extends PropertyContainer implements Driver
Driver. Provides support for
recording of command execution times during normal action. These recorded
time may then, in turn, be used in Simulating mode to query average
command execution times for simple waits. If the device additionally
implements the Preserving interface, it may store the actual
command-to-timing look-up table with a call to #preserveCommandTimes
and #restoreCommandTimes.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DRIVERNAME
The name of this driver if explicedly set.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDriver(Map<String,String> info)
Constructs a new driver.
|
| Modifier and Type | Method and Description |
|---|---|
static Driver |
createDriver(Map<String,String> prop)
Creates a new driver instance using the class key found in the
properties.
|
boolean |
equals(Object driver)
Two drivers are equal if their class is equal and their names match
|
String |
getDriverName()
All drivers should provide a property named
KEY_DRIVERNAME. |
int |
hashCode()
Hashin is done with the driver name.
|
augment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitinitpublic static final String KEY_DRIVERNAME
protected AbstractDriver(Map<String,String> info)
PropertySupplying.KEY_CLASS property is always set.public String getDriverName()
KEY_DRIVERNAME. If
it is not set, we return the class name here.getDriverName in interface Driverpublic boolean equals(Object driver)
public int hashCode()
public static final Driver createDriver(Map<String,String> prop)
PropertySupplying.KEY_CLASS property is defined, a new driver
with the stated class name is created, the supplied properties used as an
argument in the constructor.