From fee23aed22ebdc81eb4d0d807f8d17712a71bb43 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Tue, 29 Mar 2016 08:28:01 +0200 Subject: Change project structure and driver modularity --- src/drivers/Driver.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/drivers/Driver.java (limited to 'src/drivers/Driver.java') 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 -- cgit v1.2.3