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 | /**
|
---|
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.