1 | package agents.anac.y2014.TUDelftGroup2;
|
---|
2 |
|
---|
3 | import java.util.HashMap;
|
---|
4 |
|
---|
5 | import agents.anac.y2014.TUDelftGroup2.boaframework.acceptanceconditions.other.Group2_AS;
|
---|
6 | import agents.anac.y2014.TUDelftGroup2.boaframework.offeringstrategy.other.Group2_BS;
|
---|
7 | import agents.anac.y2014.TUDelftGroup2.boaframework.opponentmodel.Group2_OM;
|
---|
8 | import genius.core.boaframework.AcceptanceStrategy;
|
---|
9 | import genius.core.boaframework.BOAagentBilateral;
|
---|
10 | import genius.core.boaframework.OMStrategy;
|
---|
11 | import genius.core.boaframework.OfferingStrategy;
|
---|
12 | import genius.core.boaframework.OpponentModel;
|
---|
13 | import negotiator.boaframework.omstrategy.BestBid;
|
---|
14 |
|
---|
15 | public 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 | } |
---|