Changeset 12 for timeline


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

Added ANAC2019 Example parties: Agentgg and WinkyAgent

Location:
timeline/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.