source: src/main/java/agents/anac/y2012/TheNegotiatorReloaded/TheNegotiatorReloaded.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.7 KB
Line 
1package agents.anac.y2012.TheNegotiatorReloaded;
2
3import genius.core.SupportedNegotiationSetting;
4import genius.core.boaframework.BOAagentBilateral;
5import genius.core.boaframework.NoModel;
6import negotiator.boaframework.acceptanceconditions.anac2012.AC_TheNegotiatorReloaded;
7import negotiator.boaframework.offeringstrategy.anac2012.TheNegotiatorReloaded_Offering;
8import negotiator.boaframework.omstrategy.NullStrategy;
9import negotiator.boaframework.opponentmodel.IAMhagglerBayesianModel;
10
11public class TheNegotiatorReloaded extends BOAagentBilateral {
12
13 /**
14 * Initializes the agent by setting the opponent model, the opponent model
15 * strategy, bidding strategy, and acceptance conditions.
16 */
17 @Override
18 public void agentSetup() {
19 try {
20 if (negotiationSession.getUtilitySpace().getDomain()
21 .getNumberOfPossibleBids() < 200000) {
22 opponentModel = new IAMhagglerBayesianModel();
23 } else {
24 opponentModel = new NoModel();
25 }
26 opponentModel.init(negotiationSession, null);
27 omStrategy = new NullStrategy(negotiationSession, 0.35);
28 offeringStrategy = new TheNegotiatorReloaded_Offering(
29 negotiationSession, opponentModel, omStrategy);
30 } catch (Exception e) {
31 e.printStackTrace();
32 }
33 acceptConditions = new AC_TheNegotiatorReloaded(negotiationSession,
34 offeringStrategy, 1, 0, 1.05, 0, 0.98, 0.99);
35 }
36
37 /**
38 * Returns the agent's name.
39 */
40 @Override
41 public String getName() {
42 return "TheNegotiator Reloaded";
43 }
44
45 @Override
46 public SupportedNegotiationSetting getSupportedNegotiationSetting() {
47 return SupportedNegotiationSetting.getLinearUtilitySpaceInstance();
48 }
49
50 @Override
51 public String getDescription() {
52 return "ANAC2012";
53 }
54}
Note: See TracBrowser for help on using the repository browser.