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

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

Initial import : Genius 9.0.0

File size: 687 bytes
Line 
1package genius.core.tournament.VariablesAndValues;
2
3
4/**
5 * ProfileVariable is a variable for a tournament,
6 * indicating that the profile is to be manipulated.
7 * It just is an indicator for the TournamentVariable that its
8 * value array contains a ProfileValue.
9 *
10 * @author wouter
11 *
12 */
13public class ProfileVariable extends TournamentVariable
14{
15 private static final long serialVersionUID = -2392550149317557540L;
16
17 public void addValue(TournamentValue v) throws Exception
18 {
19 if (!(v instanceof ProfileValue))
20 throw new IllegalArgumentException("Expected ProfileValue but received "+v);
21 values.add(v);
22 }
23
24 public String varToString() {
25 return "Preference profiles";
26 }
27}
Note: See TracBrowser for help on using the repository browser.