From d0972c57cc23d7a6c913594e8166770fc1b28ff6 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 11 Mar 2015 10:50:52 +0100 Subject: Added framework --- Week6/src/Configuration.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Week6/src/Configuration.java (limited to 'Week6/src/Configuration.java') diff --git a/Week6/src/Configuration.java b/Week6/src/Configuration.java new file mode 100644 index 0000000..7264c5f --- /dev/null +++ b/Week6/src/Configuration.java @@ -0,0 +1,21 @@ +import java.util.Collection; + + +/** + * An interface for representing nodes in a state space. + * + * @author Sjaak Smetsers + * @version 1.2 + * @date 28-02-2015 + */ +public interface Configuration extends Comparable { + /* + * To obtain the successors for a specific configuration + * @return a collection of configurations containing the successors + */ + public Collection successors (); + /* + * For marking final / solution configurations. + */ + public boolean isSolution (); +} -- cgit v1.2.3