public interface Driver extends Initializable
Initializable.init() to perform some basic steps
when the driver is loaded, like opening a serial port for a
RS485Server, and close() to perform some clean-up operations
when the driver is unloaded, e.g. closing of a serial port.| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
Performs clean-up step when the driver is unloaded.
|
String |
getDriverName()
If more than one driver of a certain class is present, but registering
is only allowed to a certain driver, we can use this method to
distinguish between different instances of the driver.
|
boolean |
isOpen()
Queries the initalization status of the driver.
|
boolean |
open()
Performs initialization steps when the driver is loaded for the first
time.
|
initboolean open()
throws IOException
IOExceptionboolean isOpen()
boolean close()
throws IOException
IOExceptionString getDriverName()