source: src/main/java/genius/core/tournament/VariablesAndValues/ProtocolVariable.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: 424 bytes
Line 
1package genius.core.tournament.VariablesAndValues;
2
3public class ProtocolVariable extends TournamentVariable {
4
5 @Override
6 public void addValue(TournamentValue value) throws Exception {
7 if (!(value instanceof ProtocolValue))
8 throw new IllegalArgumentException("Expected ProtocolValue but received "+value);
9 values.add(value);
10 }
11
12 @Override
13 public String varToString() {
14 return "Protocol";
15 }
16
17}
Note: See TracBrowser for help on using the repository browser.