aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/population/Node.java
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-03-09 23:32:05 +0000
committerEduardo Pedroni <ep625@york.ac.uk>2014-03-09 23:32:05 +0000
commitc0269683bcc7fde0d437ae84cd89a93d9d8fd81b (patch)
tree62ef738e29ae310dff513cc44193c5169c4ea4ca /src/jcgp/population/Node.java
parentd63d3145f0f2abcee1bb88457324f4aaf9b9320e (diff)
Started refactoring backend in preparation for integration with the GUI
Diffstat (limited to 'src/jcgp/population/Node.java')
-rw-r--r--src/jcgp/population/Node.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jcgp/population/Node.java b/src/jcgp/population/Node.java
index 4203f25..9fafe32 100644
--- a/src/jcgp/population/Node.java
+++ b/src/jcgp/population/Node.java
@@ -20,7 +20,7 @@ public class Node implements MutableElement, Connection {
this.chromosome = chromosome;
this.column = column;
this.row = row;
- this.connections = new Connection[Parameters.getMaxArity()];
+ this.connections = new Connection[((int) Parameters.get("maxArity").getValue())];
}
@Override
@@ -44,7 +44,7 @@ public class Node implements MutableElement, Connection {
function = newFunction;
- if (newConnections.length >= Parameters.getMaxArity()) {
+ if (newConnections.length >= ((int) Parameters.get("maxArity").getValue())) {
connections = newConnections;
} else {
throw new InsufficientConnectionsException();