source: java2python/geniuswebtranslator/geniuswebsrc/geniusweb/profile/utilityspace/LinearAdditive.java@ 805

Last change on this file since 805 was 804, checked in by wouter, 7 months ago

#278 added NonNull annotation in many places in the geniusweb code

File size: 723 bytes
Line 
1
2package geniusweb.profile.utilityspace;
3
4import java.math.BigDecimal;
5import java.util.Map;
6
7import org.eclipse.jdt.annotation.NonNull;
8
9/**
10 * interface to a Utilityspace that is linear-additive.
11 *
12 */
13public interface LinearAdditive extends UtilitySpace {
14 /**
15 * @return the map from issue names to valuesetutilities (un-weighted)
16 */
17 @NonNull
18 Map<@NonNull String, @NonNull ValueSetUtilities> getUtilities();
19
20 /**
21 *
22 * @return the map from issue names to weights. weights sum to 1.
23 */
24 @NonNull
25 Map<@NonNull String, @NonNull BigDecimal> getWeights();
26
27 /**
28 *
29 * @param issue the issue name
30 * @return the weight of the given issue
31 */
32 @NonNull
33 BigDecimal getWeight(final @NonNull String issue);
34
35}
Note: See TracBrowser for help on using the repository browser.