aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/backend/population/Input.java
blob: 2661f8c54b5ce1e9f1242c3dd91551011c612d2c (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.backend.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 toString() {
		return "Input " + index;
	}
}