Changeset 13 for src/main


Ignore:
Timestamp:
04/28/20 14:43:48 (5 years ago)
Author:
bart
Message:

Enhanced tournament runner

Location:
src/main/webapp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/webapp/newsession.xhtml

    r11 r13  
    2929        <br /> Domain/Profile Server:
    3030        <input type="url" name="url" id="profilesserverurl"
    31                 value="localhost:8080/profilesserver-1.3.1"
     31                value="localhost:8080/profilesserver-1.4.0"
    3232                pattern=".*:[0-9]+/profilesserver" size="30"
    3333                onchange="connectDomain()"> </input>
     
    4343                <br /> <b>Participants</b> <br /> Parties Server: <input type="url"
    4444                        name="url" id="partiesserverurl"
    45                         value="localhost:8080/partiesserver-1.3.1"
     45                        value="localhost:8080/partiesserver-1.4.0"
    4646                        pattern=".*:[0-9]+/partiesserver" size="30"
    4747                        onchange="connectParties()"> </input> <br /> <br /> <b>Party
     
    273273         refresh table: copy all parties elements in there.
    274274         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",
    276276                 "capabilities":{"protocols":["SAOP"]},
    277277                 "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",
    279279                 "partyClass":"geniusweb.exampleparties.randomparty.RandomParty"},
    280280                                 ...]
     
    571571        function init() {
    572572                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"
    575575                connectDomain();
    576576                connectParties();
  • src/main/webapp/utilstable.xhtml

    r12 r13  
    44<title>Show tournament results table</title>
    55<link rel="stylesheet" type="text/css" href="style.css" />
    6 <script src="Chart.min_2.8.0.js"></script>
    76</head>
    87<style>
     
    150149        /**
    151150        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.
    152152        @param callwhendone function is called (without arguments) when profiles contains no pending anymore
    153153        */
    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);
    163159                        var ws;
    164160            if ('WebSocket' in window) {
    165                 ws = new WebSocket(profileurl1);
     161                ws = new WebSocket(profileurl);
    166162            } else if ('MozWebSocket' in window) {
    167                 ws = new MozWebSocket(profileurl1);
     163                ws = new MozWebSocket(profileurl);
    168164            } else {
    169165                setStatus('Fatal: WebSocket is not supported by this browser. Please use a newer browser');
     
    174170                var profile = JSON.parse(event.data);
    175171                if (profile['LinearAdditiveUtilitySpace']==undefined) {
    176                     setStatus('Fatal: profile '+uri+" does not contain a LinearAdditiveUtilitySpace.");
     172                    setStatus('Fatal: profile '+profileurl+" does not contain a LinearAdditiveUtilitySpace.");
    177173                    return;
    178174                }
    179175
    180                 profiles[profileurl]=profile['LinearAdditiveUtilitySpace'];
     176                profiles[profurl]=profile['LinearAdditiveUtilitySpace'];
    181177               
    182178                checkAllProfiles(callwhendone);
Note: See TracChangeset for help on using the changeset viewer.