From a02f1fff03ab58416da812597e67a0c7e21fdbd5 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Fri, 31 Jan 2014 13:06:54 +0000 Subject: Created most of the classes that will be necessary, content is blank for now. --- src/jcgp/chromosome/Chromosome.java | 79 ------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 src/jcgp/chromosome/Chromosome.java (limited to 'src/jcgp/chromosome/Chromosome.java') diff --git a/src/jcgp/chromosome/Chromosome.java b/src/jcgp/chromosome/Chromosome.java deleted file mode 100644 index cdf2e4b..0000000 --- a/src/jcgp/chromosome/Chromosome.java +++ /dev/null @@ -1,79 +0,0 @@ -package jcgp.chromosome; - -import java.util.ArrayList; - -import jcgp.CGP; -import jcgp.chromosome.element.Input; -import jcgp.chromosome.element.Node; -import jcgp.chromosome.element.Output; - -public class Chromosome { - - private ArrayList inputs; - private ArrayList> nodes; - private ArrayList outputs; - - /** - * Good citizen. - * - */ - public Chromosome() { - - inputs = new ArrayList(CGP.INPUTS); - for (int i = 0; i < CGP.INPUTS; i++) { - inputs.add(new Input()); - } - - // rows first - nodes = new ArrayList>(CGP.ROWS); - for (int r = 0; r < CGP.ROWS; r++) { - nodes.add(new ArrayList(CGP.COLUMNS)); - for (int c = 0; c < CGP.COLUMNS; c++) { - nodes.get(r).add(new Node()); - } - } - - outputs = new ArrayList(CGP.OUTPUTS); - for (int o = 0; o < CGP.OUTPUTS; o++) { - outputs.add(new Output()); - } - } - - public int getActiveNodeCount() { - return 0; - } - - /** - * @return the inputs - */ - public final ArrayList getInputs() { - return inputs; - } - - /** - * @return the nodes - */ - public final ArrayList> getNodes() { - return nodes; - } - - /** - * @return the outputs - */ - public final ArrayList getOutputs() { - return outputs; - } - - public final Node getNode(int row, int column) { - return nodes.get(row).get(column); - } - - public final Output getOutput(int index) { - return outputs.get(index); - } - - public final Input getInputs(int index) { - return inputs.get(index); - } - -} -- cgit v1.2.3