source: src/main/java/agents/anac/y2013/InoxAgent/InoxAgent.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.3 KB
Line 
1package agents.anac.y2013.InoxAgent;
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_InoxAgent;
9import negotiator.boaframework.offeringstrategy.anac2013.InoxAgent_Offering;
10import negotiator.boaframework.omstrategy.BestBid;
11import negotiator.boaframework.opponentmodel.InoxAgent_OM;
12
13public 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}
Note: See TracBrowser for help on using the repository browser.