Changeset 12
- Timestamp:
- 02/13/20 16:30:49 (5 years ago)
- Files:
-
- 42 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/pom.xml
r11 r12 26 26 <module>simpleshaop</module> 27 27 <module>comparebids</module> 28 <module>anac2019</module> 28 29 </modules> 29 30 </project> -
exampleparties/simpleshaop/src/main/java/geniusweb/exampleparties/simpleshaop/ShaopParty.java
r11 r12 95 95 @Override 96 96 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"; 98 98 } 99 99 -
timeline/src/main/java/geniusweb/progress/ProgressRounds.java
r1 r12 45 45 public Date getTerminationTime() { 46 46 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; 47 65 } 48 66 -
timeline/src/test/java/geniusweb/progress/ProgressRoundsTest.java
r1 r12 20 20 21 21 import geniusweb.deadline.DeadlineRounds; 22 import geniusweb.progress.Progress;23 import geniusweb.progress.ProgressRounds;24 import geniusweb.progress.ProgressTime;25 22 import tudelft.utilities.junit.GeneralTests; 26 23 … … 71 68 72 69 @Test 70 public void testCurrentRound() { 71 assertEquals((Integer) 0, progress.getCurrentRound()); 72 } 73 74 @Test 73 75 public void testAdvance() { 74 76 ProgressRounds p = progress;
Note:
See TracChangeset
for help on using the changeset viewer.