Changeset 10 for exampleparties/randomparty/src/main/java/geniusweb
- Timestamp:
- 01/28/20 10:19:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/randomparty/src/main/java/geniusweb/exampleparties/randomparty/RandomParty.java
r9 r10 3 3 import java.io.IOException; 4 4 import java.math.BigInteger; 5 import java.net.URI;6 import java.net.URISyntaxException;7 5 import java.util.Arrays; 8 6 import java.util.HashSet; … … 30 28 import geniusweb.progress.Progress; 31 29 import geniusweb.progress.ProgressRounds; 32 import geniusweb.references.ProtocolRef;33 30 import tudelft.utilities.logging.Reporter; 34 31 … … 81 78 @Override 82 79 public Capabilities getCapabilities() { 83 try { 84 return new Capabilities(new HashSet<>( 85 Arrays.asList(new ProtocolRef(new URI("SAOP"))))); 86 } catch (URISyntaxException e) { 87 getReporter().log(Level.SEVERE, "Failed to create capabilities URI", 88 e); 89 return null; 90 } 80 return new Capabilities(new HashSet<>(Arrays.asList("SAOP"))); 91 81 } 92 82 … … 115 105 } 116 106 117 private boolean isGood(Bid bid) {107 private boolean isGood(Bid bid) throws IOException { 118 108 if (bid == null) 119 109 return false;
Note:
See TracChangeset
for help on using the changeset viewer.