Last change
on this file was 127, checked in by Wouter Pasman, 6 years ago |
#41 ROLL BACK of rev.126 . So this version is equal to rev. 125
|
File size:
866 bytes
|
Line | |
---|
1 | package genius.core.uncertainty;
|
---|
2 |
|
---|
3 | import genius.core.Bid;
|
---|
4 | import genius.core.utility.UncertainAdditiveUtilitySpace;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Extends the {@link UserModel} (which contains *perceived* preferences) with
|
---|
8 | * access to the *real* preferences. This class can be used by an agent for
|
---|
9 | * debugging purposes to access the real utilites.
|
---|
10 | *
|
---|
11 | * @author Tim Baarslag, Dimitrios Tsimpoukis
|
---|
12 | */
|
---|
13 |
|
---|
14 | public class ExperimentalUserModel extends UserModel {
|
---|
15 | private UncertainAdditiveUtilitySpace realUtilitySpace;
|
---|
16 |
|
---|
17 | public ExperimentalUserModel(BidRanking ranking,
|
---|
18 | UncertainAdditiveUtilitySpace realUSpace) {
|
---|
19 | super(ranking);
|
---|
20 | this.realUtilitySpace = realUSpace;
|
---|
21 | }
|
---|
22 |
|
---|
23 | public UncertainAdditiveUtilitySpace getRealUtilitySpace() {
|
---|
24 | return realUtilitySpace;
|
---|
25 | }
|
---|
26 |
|
---|
27 | public double getRealUtility(Bid bid) {
|
---|
28 | return realUtilitySpace.getUtility(bid);
|
---|
29 | }
|
---|
30 |
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.