Changeset 21 for boa/src/test/java/geniusweb
- Timestamp:
- 09/22/20 08:52:04 (4 years ago)
- Location:
- boa/src/test/java/geniusweb/boa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boa/src/test/java/geniusweb/boa/BoaPartyTest.java
r20 r21 24 24 import geniusweb.boa.biddingstrategy.BiddingStrategy; 25 25 import geniusweb.connection.ConnectionEnd; 26 import geniusweb.inform.ActionDone; 27 import geniusweb.inform.Inform; 28 import geniusweb.inform.Settings; 29 import geniusweb.inform.YourTurn; 26 30 import geniusweb.issuevalue.Bid; 27 31 import geniusweb.issuevalue.DiscreteValue; 28 32 import geniusweb.issuevalue.Domain; 29 33 import geniusweb.opponentmodel.OpponentModel; 30 import geniusweb.party.inform.ActionDone;31 import geniusweb.party.inform.Inform;32 import geniusweb.party.inform.Settings;33 import geniusweb.party.inform.YourTurn;34 34 import geniusweb.progress.Progress; 35 35 import geniusweb.references.Parameters; -
boa/src/test/java/geniusweb/boa/acceptancestrategy/TimeDepAccStratTest.java
r20 r21 16 16 import geniusweb.bidspace.Interval; 17 17 import geniusweb.boa.BoaState; 18 import geniusweb.inform.Settings; 18 19 import geniusweb.issuevalue.Bid; 19 import geniusweb.party.inform.Settings;20 20 import geniusweb.profile.Profile; 21 21 import geniusweb.profile.utilityspace.LinearAdditive; … … 46 46 47 47 TimeDependentAcceptanceStrategy ac = new TimeDependentAcceptanceStrategy() { 48 @Override 48 49 protected BidsWithUtility getBidspace(Profile profile) { 49 50 return testbidspace; … … 52 53 // we use default e=1, k=0 which means p(0)=1 53 54 54 when(progress.get(any())).thenReturn( (Double)0.0d);55 when(progress.get(any())).thenReturn(0.0d); 55 56 56 57 when(linearprofile.getUtility(eq(bid1))) … … 67 68 68 69 TimeDependentAcceptanceStrategy ac = new TimeDependentAcceptanceStrategy() { 70 @Override 69 71 protected BidsWithUtility getBidspace(Profile profile) { 70 72 return testbidspace; … … 73 75 // we use default e=1, k=0 which means p(0)=1 74 76 75 when(progress.get(any())).thenReturn( (Double)0.0d);77 when(progress.get(any())).thenReturn(0.0d); 76 78 77 79 when(linearprofile.getUtility(eq(bid1))) … … 87 89 88 90 TimeDependentAcceptanceStrategy ac = new TimeDependentAcceptanceStrategy() { 91 @Override 89 92 protected BidsWithUtility getBidspace(Profile profile) { 90 93 return testbidspace; … … 93 96 // we use default e=1, k=0 which means p(1)=0 94 97 95 when(progress.get(any())).thenReturn( (Double)1.0d);98 when(progress.get(any())).thenReturn(1.0d); 96 99 97 100 when(linearprofile.getUtility(eq(bid1))) … … 110 113 111 114 TimeDependentAcceptanceStrategy ac = new TimeDependentAcceptanceStrategy() { 115 @Override 112 116 protected BidsWithUtility getBidspace(Profile profile) { 113 117 return testbidspace; … … 116 120 // we use default e=1, k=0 which means p(1)=resValue. 117 121 118 when(progress.get(any())).thenReturn( (Double)1.0d);122 when(progress.get(any())).thenReturn(1.0d); 119 123 120 124 when(linearprofile.getUtility(eq(bid1))) -
boa/src/test/java/geniusweb/boa/biddingstrategy/TimeDepBidStratTest.java
r20 r21 17 17 import geniusweb.actions.Offer; 18 18 import geniusweb.boa.BoaState; 19 import geniusweb.inform.Settings; 19 20 import geniusweb.issuevalue.Bid; 20 21 import geniusweb.issuevalue.DiscreteValue; 21 import geniusweb.party.inform.Settings;22 22 import geniusweb.profile.utilityspace.LinearAdditive; 23 23 import geniusweb.progress.Progress; … … 46 46 47 47 biddingstrat = new TimeDependentBiddingStrategy() { 48 @Override 48 49 protected ExtendedUtilSpace getBidSpace(LinearAdditive profile) { 49 50 return extUtilSpace;
Note:
See TracChangeset
for help on using the changeset viewer.