[153] | 1 | package agents.rlboa;
|
---|
| 2 |
|
---|
| 3 | import genius.core.boaframework.BOAagentBilateral;
|
---|
| 4 | import negotiator.boaframework.acceptanceconditions.other.AC_Next;
|
---|
| 5 | import negotiator.boaframework.offeringstrategy.anac2012.TheNegotiatorReloaded_Offering;
|
---|
| 6 | import negotiator.boaframework.omstrategy.NullStrategy;
|
---|
| 7 | import negotiator.boaframework.opponentmodel.AgentXFrequencyModel;
|
---|
| 8 |
|
---|
| 9 | import java.util.HashMap;
|
---|
| 10 |
|
---|
| 11 | @SuppressWarnings("deprecation")
|
---|
| 12 | public class BenchmarkReloaded extends BOAagentBilateral {
|
---|
| 13 |
|
---|
| 14 | /**
|
---|
| 15 | * Benchmark agent to test the RL-agents against.
|
---|
| 16 | * Same opponentModel and Acceptancecondition but Offeringstrategy of the Negotiator Reloaded.
|
---|
| 17 | */
|
---|
| 18 | private static final long serialVersionUID = 1L;
|
---|
| 19 |
|
---|
| 20 | @Override
|
---|
| 21 | public void agentSetup() {
|
---|
| 22 |
|
---|
| 23 | // AverageTitForTat2 makes decisions based on its own preferences
|
---|
| 24 | opponentModel = new AgentXFrequencyModel();
|
---|
| 25 | opponentModel.init(negotiationSession, new HashMap<String, Double>());
|
---|
| 26 |
|
---|
| 27 | omStrategy = new NullStrategy(negotiationSession, 0.35);
|
---|
| 28 | try {
|
---|
| 29 | offeringStrategy = new TheNegotiatorReloaded_Offering(
|
---|
| 30 | negotiationSession, opponentModel, omStrategy);
|
---|
| 31 | } catch (Exception e) {
|
---|
| 32 | e.printStackTrace();
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | acceptConditions = new AC_Next(negotiationSession, offeringStrategy, 1, 0);
|
---|
| 36 | setDecoupledComponents(acceptConditions, offeringStrategy, opponentModel, omStrategy);
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | @Override
|
---|
| 40 | public String getName() {
|
---|
| 41 | return "Project AI benchmark with offering strategy of Negotiator Reloaded";
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | }
|
---|