blob: cfcb3ce8cc83cb9730b999df5a0f8f5695ab6ede (
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 extends Gene 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;
}
}
|