- Timestamp:
- 09/22/20 08:52:04 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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)))
Note:
See TracChangeset
for help on using the changeset viewer.