aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/population/Input.java
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-02-14 18:13:21 +0000
committerEduardo Pedroni <ep625@york.ac.uk>2014-02-14 18:13:21 +0000
commitafa484021ba94d12e98da682a9ff69c3837d5dbb (patch)
tree2150c437cb74ccf141f8cfde228ebf5dd442314a /src/jcgp/population/Input.java
parent6419b69faeb4736db1ccb50cfa5a030f9aa818aa (diff)
Generic data type functionality implemented. All tests were refactored to reflect this, and some chromosome tests were rewritten with more rigorous assertions.
Diffstat (limited to 'src/jcgp/population/Input.java')
-rw-r--r--src/jcgp/population/Input.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jcgp/population/Input.java b/src/jcgp/population/Input.java
index ee008ce..2154dd9 100644
--- a/src/jcgp/population/Input.java
+++ b/src/jcgp/population/Input.java
@@ -2,18 +2,19 @@ package jcgp.population;
public class Input implements Connection {
- private int value = 0, index;
+ private Object value = 0;
+ private int index;
public Input(int index) {
this.index = index;
}
- public void setValue(int newValue) {
+ public void setValue(Object newValue) {
value = newValue;
}
@Override
- public int getValue() {
+ public Object getValue() {
return value;
}