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

Version 1.5.

Location:
boa/src/test/java/geniusweb/boa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boa/src/test/java/geniusweb/boa/BoaPartyTest.java

    r20 r21  
    2424import geniusweb.boa.biddingstrategy.BiddingStrategy;
    2525import geniusweb.connection.ConnectionEnd;
     26import geniusweb.inform.ActionDone;
     27import geniusweb.inform.Inform;
     28import geniusweb.inform.Settings;
     29import geniusweb.inform.YourTurn;
    2630import geniusweb.issuevalue.Bid;
    2731import geniusweb.issuevalue.DiscreteValue;
    2832import geniusweb.issuevalue.Domain;
    2933import 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;
    3434import geniusweb.progress.Progress;
    3535import geniusweb.references.Parameters;
  • 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)))
  • boa/src/test/java/geniusweb/boa/biddingstrategy/TimeDepBidStratTest.java

    r20 r21  
    1717import geniusweb.actions.Offer;
    1818import geniusweb.boa.BoaState;
     19import geniusweb.inform.Settings;
    1920import geniusweb.issuevalue.Bid;
    2021import geniusweb.issuevalue.DiscreteValue;
    21 import geniusweb.party.inform.Settings;
    2222import geniusweb.profile.utilityspace.LinearAdditive;
    2323import geniusweb.progress.Progress;
     
    4646
    4747                biddingstrat = new TimeDependentBiddingStrategy() {
     48                        @Override
    4849                        protected ExtendedUtilSpace getBidSpace(LinearAdditive profile) {
    4950                                return extUtilSpace;
Note: See TracChangeset for help on using the changeset viewer.