source: src/main/java/agents/rlboa/AverageTitForTat2.java@ 346

Last change on this file since 346 was 153, 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

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

This commit finalized the RLBOA project and it is now ready for use

Our own package (uva.project.:

  • Moved to agents.rlboa
  • 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.1 KB
Line 
1package agents.rlboa;
2
3import genius.core.boaframework.BOAagentBilateral;
4import genius.core.boaframework.NoModel;
5import negotiator.boaframework.acceptanceconditions.other.AC_Next;
6import negotiator.boaframework.omstrategy.NullStrategy;
7
8import java.util.HashMap;
9
10@SuppressWarnings("deprecation")
11public class AverageTitForTat2 extends BOAagentBilateral {
12
13
14 /**
15 *
16 */
17 private static final long serialVersionUID = 1L;
18
19 @Override
20 public void agentSetup() {
21
22 // AverageTitForTat2 makes decisions based on its own preferences
23 opponentModel = new NoModel();
24 opponentModel.init(negotiationSession, new HashMap<String, Double>());
25
26 // OMS not relevant for NoModel
27 omStrategy = new NullStrategy(negotiationSession);
28
29
30 offeringStrategy = new AverageTitForTatOfferingGamma2(negotiationSession, opponentModel, omStrategy);
31
32 acceptConditions = new AC_Next(negotiationSession, offeringStrategy, 1, 0);
33 setDecoupledComponents(acceptConditions, offeringStrategy, opponentModel, omStrategy);
34 }
35
36 @Override
37 public String getName() {
38 return "AverageTitForTat with gamma 2";
39 }
40
41}
Note: See TracBrowser for help on using the repository browser.