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