1 | package agents.anac.y2013.InoxAgent;
|
---|
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_InoxAgent;
|
---|
9 | import negotiator.boaframework.offeringstrategy.anac2013.InoxAgent_Offering;
|
---|
10 | import negotiator.boaframework.omstrategy.BestBid;
|
---|
11 | import negotiator.boaframework.opponentmodel.InoxAgent_OM;
|
---|
12 |
|
---|
13 | public class InoxAgent extends BOAagentBilateral {
|
---|
14 |
|
---|
15 | @Override
|
---|
16 | public void agentSetup() {
|
---|
17 | Map<String, Double> params = new HashMap<String, Double>();
|
---|
18 | opponentModel = new InoxAgent_OM(negotiationSession);
|
---|
19 | opponentModel.init(negotiationSession, params);
|
---|
20 | omStrategy = new BestBid();
|
---|
21 | omStrategy.init(negotiationSession, opponentModel, params);
|
---|
22 | offeringStrategy = new InoxAgent_Offering(negotiationSession,
|
---|
23 | opponentModel, omStrategy);
|
---|
24 | acceptConditions = new AC_InoxAgent(negotiationSession,
|
---|
25 | offeringStrategy, opponentModel);
|
---|
26 | }
|
---|
27 |
|
---|
28 | @Override
|
---|
29 | public String getName() {
|
---|
30 | return "InoxAgent";
|
---|
31 | }
|
---|
32 |
|
---|
33 | @Override
|
---|
34 | public SupportedNegotiationSetting getSupportedNegotiationSetting() {
|
---|
35 | return SupportedNegotiationSetting.getLinearUtilitySpaceInstance();
|
---|
36 | }
|
---|
37 |
|
---|
38 | @Override
|
---|
39 | public String getDescription() {
|
---|
40 | return "ANAC2013";
|
---|
41 | }
|
---|
42 | } |
---|