diff options
author | Eduardo Pedroni <ep625@york.ac.uk> | 2014-01-30 16:03:33 +0000 |
---|---|---|
committer | Eduardo Pedroni <ep625@york.ac.uk> | 2014-01-30 16:03:33 +0000 |
commit | 761021e0551beaaaac1120ef6da37a70281974b2 (patch) | |
tree | e5ec3899242ff1b0c87131340c2c3c617ebe841b /src/jcgp/chromosome/functions | |
parent | 2fa054bf63006dedc98639ff08b3f2c637c5d74b (diff) |
Started formally implementing the class structure but ran into some issues. I'll re-design the structure to account for function mutations, function variety, generic data types and modularized behaviour.
Diffstat (limited to 'src/jcgp/chromosome/functions')
-rw-r--r-- | src/jcgp/chromosome/functions/Function.java | 7 | ||||
-rw-r--r-- | src/jcgp/chromosome/functions/FunctionSet.java | 14 |
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>(); + } + + +} |