source: opponentmodel/src/main/java/geniusweb/opponentmodel/OpponentModel.java@ 39

Last change on this file since 39 was 39, checked in by bart, 3 years ago

Geniusweb 2.0.3. MOPAC protocol translated to Python. Small fixes.

File size: 2.0 KB
RevLine 
[39]1package geniusweb.opponentmodel;
2
3import geniusweb.actions.Action;
4import geniusweb.issuevalue.Bid;
5import geniusweb.issuevalue.Domain;
6import geniusweb.profile.Profile;
7import geniusweb.profile.utilityspace.UtilitySpace;
8import geniusweb.progress.Progress;
9import geniusweb.references.Parameters;
10
11/**
12 * An opponentmodel estimates a {@link UtilitySpace} from received opponent
13 * actions.
14 * <h2>Requirement</h2> A OpponentModel must have a constructor that takes the
15 * Domain as argument. unfortunately this can not be enforced in a java
16 * interface
17 *
18 * <p>
19 * <em>MUST</em> have an empty constructor as these are also used as part of the
20 * BOA framework.
21 *
22 */
23public interface OpponentModel extends Profile {
24
25 /**
26 * Initializes the model. This function must be called first after
27 * constructing an instance. It can also be called again later, if there is
28 * a change in the domain or resBid.
29 * <p>
30 * This late-initialization is to support boa models that have late
31 * initialization.
32 *
33 * @param domain the domain to work with. Must be not null.
34 * @param resBid the reservation bid, or null if no reservationbid is
35 * available.
36 * @return OpponentModel that uses given domain and reservationbid.
37 *
38 */
39 OpponentModel with(Domain domain, Bid resBid);
40
41 /**
42 *
43 * @param parameters Opponent-model specific {@link Parameters}
44 * @return an updated OpponentMode, with parameters used. Each
45 * implementation of OpponentModel is free to use parameters as it
46 * likes. For instance to set learning speed.
47 */
48 OpponentModel with(Parameters parameters);
49
50 /**
51 * Update this with a new action that was done by the opponent that this
52 * model is modeling. {@link #with(Domain, Bid)} must be called before
53 * calling this.
54 *
55 * @param action the new incoming action.
56 * @param progress the current progress of the negotiation. Calls to this
57 * must be done with increasing progress.
58 * @return the updated {@link OpponentModel}
59 */
60 OpponentModel with(Action action, Progress progress);
61
62}
Note: See TracBrowser for help on using the repository browser.