summaryrefslogtreecommitdiff
path: root/src/drivers/Driver.java
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-29 08:28:01 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-29 08:28:01 +0200
commitfee23aed22ebdc81eb4d0d807f8d17712a71bb43 (patch)
tree29a413a567e3469d09795772c81754552bc7fca5 /src/drivers/Driver.java
parentd2115332a74eeac45c6324f4b41338b5a655de04 (diff)
Change project structure and driver modularity
Diffstat (limited to 'src/drivers/Driver.java')
-rw-r--r--src/drivers/Driver.java25
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