Changeset 24 for exampleparties/simpleshaop/src/main/java
- Timestamp:
- 10/06/20 13:12:20 (4 years ago)
- Location:
- exampleparties/simpleshaop/src/main/java/geniusweb/exampleparties/simpleshaop
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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) {
Note:
See TracChangeset
for help on using the changeset viewer.