blob: 5c545d638fbce91a38ccc9cc2963c070ab2af1f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package jcgp.population;
public class Input implements Connection {
private Object value = 0;
private int index;
public Input(int index) {
this.index = index;
}
public void setValue(Object newValue) {
value = newValue;
}
@Override
public Object getValue() {
return value;
}
public int getIndex() {
return index;
}
@Override
public String getDescription() {
return "i: " + index;
}
}
|