Last change
on this file was 1, checked in by Wouter Pasman, 7 years ago |
Initial import : Genius 9.0.0
|
File size:
684 bytes
|
Line | |
---|
1 | package genius.core.tournament.VariablesAndValues;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * @author tim
|
---|
5 | * Used for having values in experiments.
|
---|
6 | */
|
---|
7 | public class ExperimentalVariable extends TournamentVariable
|
---|
8 | {
|
---|
9 | private static final long serialVersionUID = -8560060884848539056L;
|
---|
10 | private String side = null;
|
---|
11 |
|
---|
12 | @Override
|
---|
13 | public void addValue(TournamentValue a) throws Exception {
|
---|
14 | if (!(a instanceof ExperimentalValue))
|
---|
15 | throw new IllegalArgumentException("Expected ExperimentalValue but received "+a);
|
---|
16 | values.add(a);
|
---|
17 | }
|
---|
18 |
|
---|
19 | public String varToString() {
|
---|
20 | String res = "Experimental variable";
|
---|
21 | if(side != null) res = res + " " +side;
|
---|
22 | return res;
|
---|
23 | }
|
---|
24 |
|
---|
25 | public void setSide(String val) {
|
---|
26 | side = val;
|
---|
27 | }
|
---|
28 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.