source: src/main/java/negotiator/boaframework/agent/SimpleBOAagent.java@ 126

Last change on this file since 126 was 126, checked in by Aron Hammond, 6 years ago

Added function to calculate opposition to MultiLateralAnalysis.java

Moved code to add RLBOA listeners to RLBOAUtils is misc package

Added input for strategyParameters to SessionPanel (gui)

!! close SessionInfo after tournament; this caused /tmp/ to fill up with GeniusData files

Our own package:

  • Added opponents and strategies that are mentioned in the report
  • Change class hierarchy, agents can now extend from RLBOAagentBilateral to inherit RL functionality.
  • States extend from AbstractState
File size: 1.4 KB
Line 
1package negotiator.boaframework.agent;
2
3import java.util.HashMap;
4
5import genius.core.boaframework.AcceptanceStrategy;
6import genius.core.boaframework.BOAagentBilateral;
7import genius.core.boaframework.OMStrategy;
8import genius.core.boaframework.OfferingStrategy;
9import genius.core.boaframework.OpponentModel;
10import negotiator.boaframework.acceptanceconditions.other.AC_Next;
11import negotiator.boaframework.offeringstrategy.other.TimeDependent_Offering;
12import negotiator.boaframework.omstrategy.NullStrategy;
13import negotiator.boaframework.opponentmodel.ScalableBayesianModel;
14
15/**
16 * Simple adapter which can be used to convert a BOA Agent to a normal Agent.
17 * This is interesting for example for the ANAC competition in which BOA Agents
18 * are not (yet) accepted.
19 *
20 * @author Alex Dirkzwager
21 */
22public class SimpleBOAagent extends BOAagentBilateral {
23
24 @Override
25 public void agentSetup() {
26 OpponentModel om = new ScalableBayesianModel();
27 om.init(negotiationSession, new HashMap<String, Double>());
28 OMStrategy oms = new NullStrategy(negotiationSession);
29 OfferingStrategy offering = new TimeDependent_Offering(negotiationSession, om, oms, 0.2, 0, 1, 0); // Boulware
30 // agent
31 // strategy
32 AcceptanceStrategy ac = new AC_Next(negotiationSession, offering, 1, 0);
33 setDecoupledComponents(ac, offering, om, oms);
34 }
35
36 @Override
37 public String getName() {
38 return "SimpleBOAagent";
39 }
40}
Note: See TracBrowser for help on using the repository browser.