1 | package agents.anac.y2013.TheFawkes;
|
---|
2 |
|
---|
3 | import java.util.HashMap;
|
---|
4 | import java.util.Map;
|
---|
5 |
|
---|
6 | import genius.core.SupportedNegotiationSetting;
|
---|
7 | import genius.core.boaframework.BOAagentBilateral;
|
---|
8 | import negotiator.boaframework.acceptanceconditions.anac2013.AC_TheFawkes;
|
---|
9 | import negotiator.boaframework.offeringstrategy.anac2013.Fawkes_Offering;
|
---|
10 | import negotiator.boaframework.omstrategy.TheFawkes_OMS;
|
---|
11 | import negotiator.boaframework.opponentmodel.TheFawkes_OM;
|
---|
12 |
|
---|
13 | public class TheFawkes extends BOAagentBilateral {
|
---|
14 |
|
---|
15 | @Override
|
---|
16 | public void agentSetup() {
|
---|
17 | opponentModel = new TheFawkes_OM();
|
---|
18 | Map<String, Double> params = new HashMap<>();
|
---|
19 | opponentModel.init(negotiationSession, params);
|
---|
20 | omStrategy = new TheFawkes_OMS();
|
---|
21 | omStrategy.init(negotiationSession, opponentModel, params);
|
---|
22 | offeringStrategy = new Fawkes_Offering();
|
---|
23 | acceptConditions = new AC_TheFawkes();
|
---|
24 | try {
|
---|
25 | offeringStrategy.init(negotiationSession, opponentModel, omStrategy,
|
---|
26 | null);
|
---|
27 | acceptConditions.init(negotiationSession, offeringStrategy,
|
---|
28 | opponentModel, null);
|
---|
29 | } catch (Exception e) {
|
---|
30 | e.printStackTrace();
|
---|
31 | }
|
---|
32 | }
|
---|
33 |
|
---|
34 | @Override
|
---|
35 | public String getName() {
|
---|
36 | return "TheFawkes";
|
---|
37 | }
|
---|
38 |
|
---|
39 | @Override
|
---|
40 | public SupportedNegotiationSetting getSupportedNegotiationSetting() {
|
---|
41 | return SupportedNegotiationSetting.getLinearUtilitySpaceInstance();
|
---|
42 | }
|
---|
43 |
|
---|
44 | @Override
|
---|
45 | public String getDescription() {
|
---|
46 | return "ANAC2012";
|
---|
47 | }
|
---|
48 |
|
---|
49 | } |
---|