source: src/main/java/genius/core/tournament/VariablesAndValues/BOAagentVariable.java

Last change on this file was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 743 bytes
Line 
1package genius.core.tournament.VariablesAndValues;
2
3/**
4 * {@link AgentVariable} indicates the agents used in a tournament.
5 */
6public class BOAagentVariable extends TournamentVariable
7{
8 private static final long serialVersionUID = 6409851887801713416L;
9 private String side = null;
10 public void addValue(TournamentValue a) throws Exception {
11 if (!(a instanceof BOAagentValue))
12 throw new IllegalArgumentException("Expected DecoupledAgentValue but received "+a);
13 values.add(a);
14 }
15
16 public String varToString() {
17 String res = "BOA Agent";
18 if(side != null) res = res + " side " +side;
19 return res;
20 }
21 public void setSide(String val)
22 {
23 side = val;
24 }
25
26 public String getSide() {
27 return side;
28 }
29}
Note: See TracBrowser for help on using the repository browser.