Ignore:
Timestamp:
09/22/20 08:52:04 (4 years ago)
Author:
bart
Message:

Version 1.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boa/src/test/java/geniusweb/boa/acceptancestrategy/TimeDepAccStratTest.java

    r20 r21  
    1616import geniusweb.bidspace.Interval;
    1717import geniusweb.boa.BoaState;
     18import geniusweb.inform.Settings;
    1819import geniusweb.issuevalue.Bid;
    19 import geniusweb.party.inform.Settings;
    2020import geniusweb.profile.Profile;
    2121import geniusweb.profile.utilityspace.LinearAdditive;
     
    4646
    4747                TimeDependentAcceptanceStrategy ac = new TimeDependentAcceptanceStrategy() {
     48                        @Override
    4849                        protected BidsWithUtility getBidspace(Profile profile) {
    4950                                return testbidspace;
     
    5253                // we use default e=1, k=0 which means p(0)=1
    5354
    54                 when(progress.get(any())).thenReturn((Double) 0.0d);
     55                when(progress.get(any())).thenReturn(0.0d);
    5556
    5657                when(linearprofile.getUtility(eq(bid1)))
     
    6768
    6869                TimeDependentAcceptanceStrategy ac = new TimeDependentAcceptanceStrategy() {
     70                        @Override
    6971                        protected BidsWithUtility getBidspace(Profile profile) {
    7072                                return testbidspace;
     
    7375                // we use default e=1, k=0 which means p(0)=1
    7476
    75                 when(progress.get(any())).thenReturn((Double) 0.0d);
     77                when(progress.get(any())).thenReturn(0.0d);
    7678
    7779                when(linearprofile.getUtility(eq(bid1)))
     
    8789
    8890                TimeDependentAcceptanceStrategy ac = new TimeDependentAcceptanceStrategy() {
     91                        @Override
    8992                        protected BidsWithUtility getBidspace(Profile profile) {
    9093                                return testbidspace;
     
    9396                // we use default e=1, k=0 which means p(1)=0
    9497
    95                 when(progress.get(any())).thenReturn((Double) 1.0d);
     98                when(progress.get(any())).thenReturn(1.0d);
    9699
    97100                when(linearprofile.getUtility(eq(bid1)))
     
    110113
    111114                TimeDependentAcceptanceStrategy ac = new TimeDependentAcceptanceStrategy() {
     115                        @Override
    112116                        protected BidsWithUtility getBidspace(Profile profile) {
    113117                                return testbidspace;
     
    116120                // we use default e=1, k=0 which means p(1)=resValue.
    117121
    118                 when(progress.get(any())).thenReturn((Double) 1.0d);
     122                when(progress.get(any())).thenReturn(1.0d);
    119123
    120124                when(linearprofile.getUtility(eq(bid1)))
Note: See TracChangeset for help on using the changeset viewer.