Changeset 24 for exampleparties/simpleshaop
- Timestamp:
- 10/06/20 13:12:20 (4 years ago)
- Location:
- exampleparties/simpleshaop
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/simpleshaop/pom.xml
r23 r24 6 6 <groupId>geniusweb.exampleparties</groupId> 7 7 <artifactId>simpleshaop</artifactId> 8 <version>1.5. 2</version> <!-- must equal ${geniusweb.version} -->8 <version>1.5.3</version> <!-- must equal ${geniusweb.version} --> 9 9 <packaging>jar</packaging> 10 10 … … 17 17 <passwd>${env.ARTIFACTORY_PASS}</passwd> 18 18 <jackson-2-version>2.9.6</jackson-2-version> 19 <geniusweb.version>1.5. 2</geniusweb.version>19 <geniusweb.version>1.5.3</geniusweb.version> 20 20 </properties> 21 21 … … 188 188 <groupId>org.apache.maven.plugins</groupId> 189 189 <artifactId>maven-javadoc-plugin</artifactId> 190 <version> 2.10.1</version>190 <version>3.2.0</version> 191 191 <executions> 192 192 <execution> … … 195 195 <goal>jar</goal> 196 196 </goals> 197 <configuration>198 <additionalparam>${javadoc.opts}</additionalparam>199 <additionalparam>-Xdoclint:none</additionalparam>200 </configuration>201 197 </execution> 202 198 </executions> -
exampleparties/simpleshaop/src/main/java/geniusweb/exampleparties/simpleshaop/ShaopParty.java
r21 r24 38 38 * created. 39 39 * <p> 40 * <b>Requirement< b> the initial {@link PartialOrdering} must contain at least40 * <b>Requirement</b> the initial {@link PartialOrdering} must contain at least 41 41 * the bids with lowest utility and highest utility, and the proper comparison 42 42 * info for these two bids. -
exampleparties/simpleshaop/src/main/java/geniusweb/exampleparties/simpleshaop/SimpleLinearOrdering.java
r11 r24 21 21 22 22 private final Domain domain; 23 private final List<Bid> bids; // worst bid first, best bid last. 23 /** 24 * List of bids. worst bid first, best bid last. 25 */ 26 private final List<Bid> bids; 24 27 25 28 SimpleLinearOrdering(Profile profile) { … … 29 32 /** 30 33 * 31 * @param domain 34 * @param domain The {@link Domain} 32 35 * @param bids a list of bids, ordered from lowest to highest util. The 33 36 * first bid will have utility 0, the last utility 1. If only … … 67 70 /** 68 71 * 69 * @param bid 72 * @param bid the {@link Bid} 70 73 * @return true iff bid is contained in this ordering 71 74 */ … … 84 87 /** 85 88 * 86 * @param profile 89 * @param profile the {@link Profile} 87 90 * @return a list of bids in the profile sorted from low to high utility. 88 91 */ … … 108 111 109 112 /** 110 * @param bid a new bidto be inserted113 * @param bid a new {@link Bid} to be inserted 111 114 * @param worseBids all bids that are worse than this bid. 112 * @return a SimpleLinearOrdering, updated with the given comparison. Thee113 * bid will be inserted after the first bid that is not worse than114 * bid.115 * @return a {@link SimpleLinearOrdering}, updated with the given 116 * comparison. Thee bid will be inserted after the first bid that is 117 * not worse than bid. 115 118 */ 116 119 public SimpleLinearOrdering with(Bid bid, List<Bid> worseBids) { -
exampleparties/simpleshaop/src/test/java/geniusweb/exampleparties/simpleshaop/ShaopPartyTest.java
r21 r24 8 8 import static org.mockito.Mockito.mock; 9 9 import static org.mockito.Mockito.verify; 10 import static org.mockito.Mockito.when; 10 11 11 12 import java.io.IOException; … … 37 38 import geniusweb.connection.ConnectionEnd; 38 39 import geniusweb.inform.ActionDone; 40 import geniusweb.inform.Agreements; 39 41 import geniusweb.inform.Finished; 40 42 import geniusweb.inform.Inform; … … 178 180 party.connect(connection); 179 181 party.notifyChange(settings); 180 party.notifyChange(new Finished(null)); 182 183 Agreements agreements = mock(Agreements.class); 184 when(agreements.toString()).thenReturn("agree"); 185 party.notifyChange(new Finished(agreements)); 181 186 182 187 verify(reporter).log(eq(Level.INFO), 183 eq("Final ourcome:Finished[ null]"));188 eq("Final ourcome:Finished[agree]")); 184 189 } 185 190
Note:
See TracChangeset
for help on using the changeset viewer.