Changeset 7 for profile/src/main


Ignore:
Timestamp:
09/25/19 16:49:06 (5 years ago)
Author:
bart
Message:

Fix consistency check LinearAdditiveUtilitySpace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • profile/src/main/java/geniusweb/profile/utilityspace/LinearAdditiveUtilitySpace.java

    r4 r7  
    6767                        @JsonProperty("issueWeights") Map<String, BigDecimal> weights,
    6868                        @JsonProperty("reservationBid") Bid resBid) {
     69                this.domain = domain;
     70                this.name = name;
     71                this.reservationBid = resBid;
     72                this.issueUtilities.putAll(utils);
     73                this.issueWeights.putAll(weights);
     74
    6975                if (domain == null) {
    7076                        throw new NullPointerException("domain=null");
     
    116122                                        + weights.values() + ") must be 1");
    117123                }
    118                 this.domain = domain;
    119                 this.name = name;
    120                 this.reservationBid = resBid;
    121                 issueUtilities.putAll(utils);
    122                 issueWeights.putAll(weights);
    123124        }
    124125
Note: See TracChangeset for help on using the changeset viewer.