aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/population/Input.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/population/Input.java')
-rw-r--r--src/jcgp/population/Input.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/jcgp/population/Input.java b/src/jcgp/population/Input.java
index e00573e..ee008ce 100644
--- a/src/jcgp/population/Input.java
+++ b/src/jcgp/population/Input.java
@@ -2,7 +2,11 @@ package jcgp.population;
public class Input implements Connection {
- private int value = 0;
+ private int value = 0, index;
+
+ public Input(int index) {
+ this.index = index;
+ }
public void setValue(int newValue) {
value = newValue;
@@ -13,4 +17,8 @@ public class Input implements Connection {
return value;
}
+ public int getIndex() {
+ return index;
+ }
+
}