Last change
on this file was 127, checked in by Wouter Pasman, 7 years ago |
#41 ROLL BACK of rev.126 . So this version is equal to rev. 125
|
File size:
402 bytes
|
Line | |
---|
1 | package genius.core.tournament.VariablesAndValues;
|
---|
2 |
|
---|
3 | public class MultipleAgentsVariable extends TournamentVariable {
|
---|
4 |
|
---|
5 | public void addValue(TournamentValue a) throws Exception
|
---|
6 | {
|
---|
7 | if (!(a instanceof AgentValue))
|
---|
8 | {
|
---|
9 | throw new IllegalArgumentException("Expected AgentValue but received " + a);
|
---|
10 | }
|
---|
11 |
|
---|
12 | values.add(a);
|
---|
13 | }
|
---|
14 |
|
---|
15 | public String varToString()
|
---|
16 | {
|
---|
17 | return "Agents";
|
---|
18 | }
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.