Line | |
---|
1 | package geniusweb.opponentmodel;
|
---|
2 |
|
---|
3 | import geniusweb.actions.Action;
|
---|
4 | import geniusweb.issuevalue.Domain;
|
---|
5 | import geniusweb.profile.Profile;
|
---|
6 | import geniusweb.profile.utilityspace.UtilitySpace;
|
---|
7 | import geniusweb.progress.Progress;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * An opponentmodel estimates a {@link UtilitySpace} from received opponent
|
---|
11 | * actions.
|
---|
12 | * <h1>Requirement</h1> A OpponentModel must have a constructor that takes the
|
---|
13 | * Domain as argument. unfortunately this can not be enforced in a java
|
---|
14 | * interface
|
---|
15 | */
|
---|
16 | public interface OpponentModel extends Profile {
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Update this with a new action that was done by the opponent that this
|
---|
20 | * model is modeling. {@link #with(Domain)} must be called before calling
|
---|
21 | * this.
|
---|
22 | *
|
---|
23 | * @param action the new incoming action.
|
---|
24 | * @param progress the current progress of the negotiation. Calls to this
|
---|
25 | * must be done with increasing progress.
|
---|
26 | * @return the updated {@link OpponentModel}
|
---|
27 | */
|
---|
28 | OpponentModel with(Action action, Progress progress);
|
---|
29 |
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.