From 761021e0551beaaaac1120ef6da37a70281974b2 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Thu, 30 Jan 2014 16:03:33 +0000 Subject: 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. --- src/jcgp/chromosome/functions/Function.java | 7 +++++++ src/jcgp/chromosome/functions/FunctionSet.java | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/jcgp/chromosome/functions/Function.java create mode 100644 src/jcgp/chromosome/functions/FunctionSet.java (limited to 'src/jcgp/chromosome/functions') 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 functions; + + public FunctionSet() { + functions = new ArrayList(); + } + + +} -- cgit v1.2.3