Changeset 13
- Timestamp:
- 04/28/20 14:43:48 (5 years ago)
- Location:
- src/main/webapp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/webapp/newsession.xhtml
r11 r13 29 29 <br /> Domain/Profile Server: 30 30 <input type="url" name="url" id="profilesserverurl" 31 value="localhost:8080/profilesserver-1. 3.1"31 value="localhost:8080/profilesserver-1.4.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. 3.1"45 value="localhost:8080/partiesserver-1.4.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. 3.1",275 [{"uri":"http:130.161.180.1:8080/partiesserver/run/randomparty-1.4.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. 3.1",278 "id":"randomparty-1.4.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. 3.1"574 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1. 3.1"573 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1.4.0" 574 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1.4.0" 575 575 connectDomain(); 576 576 connectParties(); -
src/main/webapp/utilstable.xhtml
r12 r13 4 4 <title>Show tournament results table</title> 5 5 <link rel="stylesheet" type="text/css" href="style.css" /> 6 <script src="Chart.min_2.8.0.js"></script>7 6 </head> 8 7 <style> … … 150 149 /** 151 150 This function returns immediately and will add the profile to the profiles dictionary some time later. 151 @param profurl the profile URL may have ?partial filter. 152 152 @param callwhendone function is called (without arguments) when profiles contains no pending anymore 153 153 */ 154 function getProfile(profileurl, callwhendone) { 155 profiles[profileurl]='pending'; 156 157 var profileurl1 = profileurl; // idem but possibly without query 158 if (SHAOP) { 159 profileurl1 = profileurl1.split('?',1)[0]; // hacky, remove complete query. 160 } 161 162 setStatus("fetching profile "+profileurl1); 154 function getProfile(profurl, callwhendone) { 155 profiles[profurl]='pending'; // store ORIGINAL URL 156 var profileurl = profurl.split('?',1)[0]; // hacky, remove complete query. 157 158 setStatus("fetching profile "+profileurl); 163 159 var ws; 164 160 if ('WebSocket' in window) { 165 ws = new WebSocket(profileurl 1);161 ws = new WebSocket(profileurl); 166 162 } else if ('MozWebSocket' in window) { 167 ws = new MozWebSocket(profileurl 1);163 ws = new MozWebSocket(profileurl); 168 164 } else { 169 165 setStatus('Fatal: WebSocket is not supported by this browser. Please use a newer browser'); … … 174 170 var profile = JSON.parse(event.data); 175 171 if (profile['LinearAdditiveUtilitySpace']==undefined) { 176 setStatus('Fatal: profile '+ uri+" does not contain a LinearAdditiveUtilitySpace.");172 setStatus('Fatal: profile '+profileurl+" does not contain a LinearAdditiveUtilitySpace."); 177 173 return; 178 174 } 179 175 180 profiles[prof ileurl]=profile['LinearAdditiveUtilitySpace'];176 profiles[profurl]=profile['LinearAdditiveUtilitySpace']; 181 177 182 178 checkAllProfiles(callwhendone);
Note:
See TracChangeset
for help on using the changeset viewer.