diff options
Diffstat (limited to 'src/drivers/Driver.java')
| -rw-r--r-- | src/drivers/Driver.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/drivers/Driver.java b/src/drivers/Driver.java new file mode 100644 index 0000000..d362d19 --- /dev/null +++ b/src/drivers/Driver.java @@ -0,0 +1,25 @@ +package org.manzerbredes.open_klm.drivers; + + +/** + * Driver must implement this interface + * + * @author Manzerbredes + * + */ +public interface Driver{ + + /** + * Get the type of the driver + * + * @return class that represent the type of the driver (DriverTypeA.class for example) + */ + public Class<?> getType(); + + /** + * Initialise the driver (do not initialise anything in the constructor). + * + * @return true if success (device is present and accessible) false else. + */ + public boolean initDriver(); +}
\ No newline at end of file |
