1 | package agents.anac.y2012.TheNegotiatorReloaded;
|
---|
2 |
|
---|
3 | import genius.core.SupportedNegotiationSetting;
|
---|
4 | import genius.core.boaframework.BOAagentBilateral;
|
---|
5 | import genius.core.boaframework.NoModel;
|
---|
6 | import negotiator.boaframework.acceptanceconditions.anac2012.AC_TheNegotiatorReloaded;
|
---|
7 | import negotiator.boaframework.offeringstrategy.anac2012.TheNegotiatorReloaded_Offering;
|
---|
8 | import negotiator.boaframework.omstrategy.NullStrategy;
|
---|
9 | import negotiator.boaframework.opponentmodel.IAMhagglerBayesianModel;
|
---|
10 |
|
---|
11 | public 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 | } |
---|