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

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

Initial import : Genius 9.0.0

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