source: src/main/java/agents/anac/y2014/TUDelftGroup2/Group2Agent.java

Last change on this file was 68, checked in by Wouter Pasman, 6 years ago

Renamed old BOAAgent to BOAAgentBilateral. javadoc Set BOAAgentBilateral and Agent classes to "deprecated" for clarity

File size: 1.8 KB
Line 
1package agents.anac.y2014.TUDelftGroup2;
2
3import java.util.HashMap;
4
5import agents.anac.y2014.TUDelftGroup2.boaframework.acceptanceconditions.other.Group2_AS;
6import agents.anac.y2014.TUDelftGroup2.boaframework.offeringstrategy.other.Group2_BS;
7import agents.anac.y2014.TUDelftGroup2.boaframework.opponentmodel.Group2_OM;
8import genius.core.boaframework.AcceptanceStrategy;
9import genius.core.boaframework.BOAagentBilateral;
10import genius.core.boaframework.OMStrategy;
11import genius.core.boaframework.OfferingStrategy;
12import genius.core.boaframework.OpponentModel;
13import negotiator.boaframework.omstrategy.BestBid;
14
15public class Group2Agent extends BOAagentBilateral {
16
17 @Override
18 public void agentSetup() {
19 OpponentModel om = new Group2_OM();
20
21 try {
22 om.init(negotiationSession,
23 new java.util.HashMap<java.lang.String, java.lang.Double>(
24 1));
25 } catch (Exception e1) {
26 // TODO Auto-generated catch block
27 e1.printStackTrace();
28 }
29
30 OMStrategy oms = new BestBid();
31 oms.init(negotiationSession, om, new HashMap<String, Double>());
32
33 OfferingStrategy offering = new Group2_BS();
34 try {
35 offering.init(negotiationSession, om, oms,
36 new java.util.HashMap<java.lang.String, java.lang.Double>(
37 1));
38 } catch (Exception e) {
39 // TODO Auto-generated catch block
40 e.printStackTrace();
41 }
42
43 AcceptanceStrategy ac = new Group2_AS();
44 try {
45 ac.init(negotiationSession, offering, om,
46 new java.util.HashMap<java.lang.String, java.lang.Double>(
47 1));
48 } catch (Exception e) {
49 // TODO Auto-generated catch block
50 e.printStackTrace();
51 }
52
53 setDecoupledComponents(ac, offering, om, oms);
54 }
55
56 @Override
57 public String getName() {
58 return "GROUP2Agent";
59 }
60
61 @Override
62 public String getDescription() {
63 return "ANAC2014 compatible with non-linear utility spaces";
64 }
65}
Note: See TracBrowser for help on using the repository browser.