Changeset 4 for profile/src/main/java


Ignore:
Timestamp:
09/18/19 10:00:22 (5 years ago)
Author:
bart
Message:

Faster example parties

Location:
profile/src/main/java/geniusweb/profile/utilityspace
Files:
2 edited

Legend:

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

    r1 r4  
    88import com.fasterxml.jackson.annotation.JsonAutoDetect;
    99import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
     10import com.fasterxml.jackson.annotation.JsonCreator;
     11import com.fasterxml.jackson.annotation.JsonProperty;
    1012
    1113import geniusweb.issuevalue.Bid;
    1214import geniusweb.issuevalue.Domain;
    1315import geniusweb.issuevalue.Value;
    14 
    15 import com.fasterxml.jackson.annotation.JsonCreator;
    16 import com.fasterxml.jackson.annotation.JsonProperty;
    1716
    1817/**
     
    221220
    222221        /**
    223          * @return the map from issue names to valuesetutilities
     222         * @return the map from issue names to valuesetutilities (un-weighted)
    224223         */
    225224        public Map<String, ValueSetUtilities> getUtilities() {
  • profile/src/main/java/geniusweb/profile/utilityspace/NumberValueSetUtilities.java

    r3 r4  
    106106        }
    107107
     108        /**
     109         * @return the lowest value
     110         */
     111        public BigDecimal getLowValue() {
     112                return lowValue;
     113        }
     114
     115        /**
     116         *
     117         * @return the highest value
     118         */
     119        public BigDecimal getHighValue() {
     120                return highValue;
     121        }
     122
     123        /**
     124         *
     125         * @return the utility of the lowest value
     126         */
     127        public BigDecimal getLowUtility() {
     128                return lowUtility;
     129        }
     130
     131        /**
     132         *
     133         * @return the utility of the highest value
     134         */
     135        public BigDecimal getHighUtility() {
     136                return highUtility;
     137        }
     138
    108139        @Override
    109140        public String toString() {
Note: See TracChangeset for help on using the changeset viewer.