source: src/main/java/agents/anac/y2014/BraveCat/BraveCat.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: 2.5 KB
Line 
1/**
2 * This file contains the main class of BraveCat agent, which should be directly imported into the GENIUS 5.1.
3 * BraveCat agent is developed in order to take part in The Fourth International Automated Negotiating Agents Competition (ANAC 2014), and
4 * Created by Farhad Zafari (email address: f_z_uut@yahoo.com), and Faria Nasiri Mofakham (website address: http://eng.ui.ac.ir/~fnasiri), in
5 * Department of Information Technology Engineering,
6 * Faculty of Engineering,
7 * University of Isfahan, Isfahan, Iran (http://www.ui.ac.ir/).
8 * BraveCat agent is consistent with the BOA framework devised by Baarslag et al.
9 * For more information on the BOA framework you can see:
10 * T. Baarslag, K. Hindriks, M. Hendrikx, A. Dirkzwager, and C. Jonker, "Decoupling negotiating agents to explore the space of negotiation strategies",
11 * in Proceedings of the 5th International Workshop on Agent-based Complex Automated Negotiations, ACAN, 2012.
12 */
13
14package agents.anac.y2014.BraveCat;
15
16import agents.anac.y2014.BraveCat.AcceptanceStrategies.AC_LAST;
17import agents.anac.y2014.BraveCat.AcceptanceStrategies.AcceptanceStrategy;
18import agents.anac.y2014.BraveCat.OfferingStrategies.BRTOfferingStrategy;
19import agents.anac.y2014.BraveCat.OfferingStrategies.OfferingStrategy;
20import agents.anac.y2014.BraveCat.OpponentModelStrategies.BestBid;
21import agents.anac.y2014.BraveCat.OpponentModelStrategies.OMStrategy;
22import agents.anac.y2014.BraveCat.OpponentModels.OpponentModel;
23import agents.anac.y2014.BraveCat.OpponentModels.DBOMModel.DBOMModel;
24import agents.anac.y2014.BraveCat.necessaryClasses.BOAagent;
25
26public class BraveCat extends BOAagent {
27 @Override
28 public void agentSetup() {
29 System.out.println(
30 "..........................Agent Setup Started.............................");
31 try {
32 OpponentModel om = null;
33 om = new DBOMModel();
34 om.init(negotiationSession);
35 OMStrategy oms = new BestBid(negotiationSession, om);
36 OfferingStrategy offering = new BRTOfferingStrategy(
37 this.negotiationSession, om, oms, 0.005, 0);
38 AcceptanceStrategy ac = new AC_LAST();
39 ac.init(this.negotiationSession, offering, om, null);
40 setDecoupledComponents(ac, offering, om, oms);
41 } catch (Exception ex) {
42 }
43 System.out.println(
44 "..........................Agent Setup Ended...............................");
45 }
46
47 @Override
48 public String getName() {
49 return "BraveCat v0.3";
50 }
51
52 @Override
53 public String getDescription() {
54 return "ANAC 2014 compatible with non-linear utility spaces";
55 }
56}
Note: See TracBrowser for help on using the repository browser.