Changeset 3 for exampleparties/timedependentparty/src/main/java/geniusweb
- Timestamp:
- 08/29/19 17:09:32 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/timedependentparty/src/main/java/geniusweb/exampleparties/timedependentparty/TimeDependentParty.java
r2 r3 122 122 123 123 if (lastReceivedBid != null && utilspace.getUtility(lastReceivedBid) 124 .compareTo(utilspace.getUtility(bid)) > 0) {124 .compareTo(utilspace.getUtility(bid)) >= 0) { 125 125 myAction = new Accept(me, lastReceivedBid); 126 126 } else { … … 160 160 maxUtil = util; 161 161 } 162 double rv = utilspace.getUtility(utilspace.getReservationBid()) 163 .doubleValue(); 164 if (rv > minUtil) 165 minUtil = rv; 162 163 Bid rvbid = utilspace.getReservationBid(); 164 if (rvbid != null) { 165 double rv = utilspace.getUtility(rvbid).doubleValue(); 166 if (rv > minUtil) 167 minUtil = rv; 168 } 166 169 tolerance = 100 / allbidslist.size().longValue(); 167 170 tolerance = Math.max(tolerance, 0.1);
Note:
See TracChangeset
for help on using the changeset viewer.