Changeset 9
- Timestamp:
- 01/30/20 16:52:47 (5 years ago)
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pom.xml
r7 r9 6 6 <artifactId>runserver</artifactId> 7 7 <packaging>war</packaging> 8 <version>1. 1.0</version>8 <version>1.2.0</version> 9 9 <name>runserver Maven Webapp</name> 10 10 <url>http://maven.apache.org</url> … … 53 53 <groupId>geniusweb</groupId> 54 54 <artifactId>profile</artifactId> 55 <version>1. 1.0</version>55 <version>1.2.0</version> 56 56 </dependency> 57 57 … … 59 59 <groupId>geniusweb</groupId> 60 60 <artifactId>party</artifactId> 61 <version>1. 1.0</version>61 <version>1.2.0</version> 62 62 </dependency> 63 63 … … 65 65 <groupId>geniusweb</groupId> 66 66 <artifactId>references</artifactId> 67 <version>1. 1.0</version>67 <version>1.2.0</version> 68 68 </dependency> 69 69 … … 71 71 <groupId>geniusweb</groupId> 72 72 <artifactId>protocol</artifactId> 73 <version>1. 1.0</version>73 <version>1.2.0</version> 74 74 </dependency> 75 75 -
src/main/webapp/newsession.xhtml
r8 r9 29 29 <br /> Domain/Profile Server: 30 30 <input type="url" name="url" id="profilesserverurl" 31 value="localhost:8080/profilesserver-1. 1.0"31 value="localhost:8080/profilesserver-1.2.0" 32 32 pattern=".*:[0-9]+/profilesserver" size="30" 33 33 onchange="connectDomain()"> </input> … … 43 43 <br /> <b>Participants</b> <br /> Parties Server: <input type="url" 44 44 name="url" id="partiesserverurl" 45 value="localhost:8080/partiesserver-1. 1.0"45 value="localhost:8080/partiesserver-1.2.0" 46 46 pattern=".*:[0-9]+/partiesserver" size="30" 47 47 onchange="connectParties()"> </input> <br /> <br /> <b>Party … … 273 273 refresh table: copy all parties elements in there. 274 274 Typically parties is something like 275 [{"uri":"http:130.161.180.1:8080/partiesserver/run/randomparty-1. 1.0",275 [{"uri":"http:130.161.180.1:8080/partiesserver/run/randomparty-1.2.0", 276 276 "capabilities":{"protocols":["SAOP"]}, 277 277 "description":"places random bids until it can accept an offer with utility >0.6", 278 "id":"randomparty-1. 1.0",278 "id":"randomparty-1.2.0", 279 279 "partyClass":"geniusweb.exampleparties.randomparty.RandomParty"}, 280 280 ...] … … 571 571 function init() { 572 572 selectProtocol(); 573 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1. 1.0"574 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1. 1.0"573 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1.2.0" 574 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1.2.0" 575 575 connectDomain(); 576 576 connectParties(); -
src/main/webapp/newtournament.xhtml
r8 r9 47 47 <div id="box" class="box"> 48 48 <br /> Domain/Profile Server: <input type="url" name="url" 49 id="profilesserverurl" value="localhost:8080/profilesserver-1. 1.0"49 id="profilesserverurl" value="localhost:8080/profilesserver-1.2.0" 50 50 pattern=".*:[0-9]+/profilesserver" size="30" 51 51 onchange="connectDomain()"> </input> <br /> Domain: <select … … 76 76 <div id="box" class="box"> 77 77 <br /> Parties Server: <input type="url" name="url" 78 id="partiesserverurl" value="localhost:8080/partiesserver-1. 1.0"78 id="partiesserverurl" value="localhost:8080/partiesserver-1.2.0" 79 79 pattern=".*:[0-9]+/partiesserver" size="30" 80 80 onchange="connectParties()"> </input> <br /> <br /> … … 106 106 <div id="started" style="visibility: hidden"> 107 107 Your tournament started. Click <a href="" id="logref">here</a> to view 108 the log file. 108 the log file. <br /> 109 <a href="" id="plotref">show results table.</a>. 109 110 </div> 110 111 … … 385 386 document.getElementById("started").setAttribute("style",""); 386 387 document.getElementById("logref").href="log/"+this.responseText+".json"; 388 document.getElementById("plotref").href="utilstable.xhtml?"+this.responseText; 387 389 } else 388 390 alert("request failed:"+this.statusText); … … 421 423 */ 422 424 function init() { 423 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1. 1.0";424 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1. 1.0";425 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1.2.0"; 426 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1.2.0"; 425 427 426 428 -
src/main/webapp/plotlog.xhtml
r4 r9 35 35 36 36 37 37 38 38 39 … … 76 77 */ 77 78 function processLogFile(json) { 78 if (json['SAOPState']==undefined) { 79 if (json['SAOPState']!=undefined) { 80 processSAOP(json['SAOPState']); 81 } else if (json['SHAOPState']!=undefined) { 82 processSHAOP(json['SHAOPState']); 83 } else { 79 84 setStatus("Unknown log file contents "+Object.keys(json)); 80 return; 81 } 82 processSAOP(json['SAOPState']); 85 } 83 86 } 84 87 … … 95 98 getProfiles(json, partyprofiles); 96 99 } 100 101 /** 102 Handle SHAOP protocol result. Get only SHAOP profiles. Remove all 'partial=XX' from relevant profiles. 103 */ 104 function processSHAOP(json) { 105 var partyprofiles={} 106 var teams=json['settings']['SHAOPSettings']['participants']; 107 for (var partyid in json['partyNumbers']) { 108 var nr= json['partyNumbers'][partyid]; 109 if ( (nr & 1 != 0)) continue; // skip COB parties 110 var shaop=teams[nr/2]['shaop']; 111 var profile = shaop['profile'].split('?',1)[0]; // hacky, remove complete query. 112 partyprofiles[partyid]=profile; 113 } 114 115 116 getProfiles(json, partyprofiles); 117 } 118 97 119 98 120 /** … … 334 356 335 357 358 336 359 </script> 337 360 … … 339 362 340 363 <script type="application/javascript"> 364 341 365 342 366 … … 368 392 369 393 394 370 395 </script> 371 396
Note:
See TracChangeset
for help on using the changeset viewer.