aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/chromosome/functions
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/chromosome/functions')
-rw-r--r--src/jcgp/chromosome/functions/Function.java7
-rw-r--r--src/jcgp/chromosome/functions/FunctionSet.java14
2 files changed, 21 insertions, 0 deletions
diff --git a/src/jcgp/chromosome/functions/Function.java b/src/jcgp/chromosome/functions/Function.java
new file mode 100644
index 0000000..27697be
--- /dev/null
+++ b/src/jcgp/chromosome/functions/Function.java
@@ -0,0 +1,7 @@
+package jcgp.chromosome.functions;
+
+public abstract class Function {
+
+ public abstract int run();
+
+}
diff --git a/src/jcgp/chromosome/functions/FunctionSet.java b/src/jcgp/chromosome/functions/FunctionSet.java
new file mode 100644
index 0000000..e9d197a
--- /dev/null
+++ b/src/jcgp/chromosome/functions/FunctionSet.java
@@ -0,0 +1,14 @@
+package jcgp.chromosome.functions;
+
+import java.util.ArrayList;
+
+public class FunctionSet {
+
+ private ArrayList<Function> functions;
+
+ public FunctionSet() {
+ functions = new ArrayList<Function>();
+ }
+
+
+}