Changeset 12


Ignore:
Timestamp:
02/13/20 16:30:49 (4 years ago)
Author:
bart
Message:

Added ANAC2019 Example parties: Agentgg and WinkyAgent

Files:
42 added
4 edited

Legend:

Unmodified
Added
Removed
  • exampleparties/pom.xml

    r11 r12  
    2626                <module>simpleshaop</module>
    2727                <module>comparebids</module>
     28                <module>anac2019</module>
    2829        </modules>
    2930</project>
  • exampleparties/simpleshaop/src/main/java/geniusweb/exampleparties/simpleshaop/ShaopParty.java

    r11 r12  
    9595        @Override
    9696        public String getDescription() {
    97                 return "Communicates with COB party to figure out which bids are good. Accepts bids with utility > 0.9. Offers random bids.";
     97                return "Communicates with COB party to figure out which bids are good. Accepts bids with utility > 0.9. Offers random bids. Requires partial profile";
    9898        }
    9999
  • timeline/src/main/java/geniusweb/progress/ProgressRounds.java

    r1 r12  
    4545        public Date getTerminationTime() {
    4646                return endtime;
     47        }
     48
     49        /**
     50         *
     51         * @return the current round. First round is 0. It is not recommended to use
     52         *         this, as this may make your code working with rounds only.
     53         */
     54        public Integer getCurrentRound() {
     55                return currentRound;
     56        }
     57
     58        /**
     59         *
     60         * @return total number of rounds. It is not recommended to use this, as
     61         *         this may make your code working with rounds only.
     62         */
     63        public Integer getTotalRounds() {
     64                return duration;
    4765        }
    4866
  • timeline/src/test/java/geniusweb/progress/ProgressRoundsTest.java

    r1 r12  
    2020
    2121import geniusweb.deadline.DeadlineRounds;
    22 import geniusweb.progress.Progress;
    23 import geniusweb.progress.ProgressRounds;
    24 import geniusweb.progress.ProgressTime;
    2522import tudelft.utilities.junit.GeneralTests;
    2623
     
    7168
    7269        @Test
     70        public void testCurrentRound() {
     71                assertEquals((Integer) 0, progress.getCurrentRound());
     72        }
     73
     74        @Test
    7375        public void testAdvance() {
    7476                ProgressRounds p = progress;
Note: See TracChangeset for help on using the changeset viewer.