source: src/main/java/agents/anac/y2013/TheFawkes/TheFawkes.java

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: 1.4 KB
Line 
1package agents.anac.y2013.TheFawkes;
2
3import java.util.HashMap;
4import java.util.Map;
5
6import genius.core.SupportedNegotiationSetting;
7import genius.core.boaframework.BOAagentBilateral;
8import negotiator.boaframework.acceptanceconditions.anac2013.AC_TheFawkes;
9import negotiator.boaframework.offeringstrategy.anac2013.Fawkes_Offering;
10import negotiator.boaframework.omstrategy.TheFawkes_OMS;
11import negotiator.boaframework.opponentmodel.TheFawkes_OM;
12
13public 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}
Note: See TracBrowser for help on using the repository browser.