Last change
on this file 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
|
Rev | Line | |
---|
[153] | 1 | package agents.rlboa;
|
---|
| 2 |
|
---|
| 3 | import genius.core.boaframework.BOAagentBilateral;
|
---|
| 4 | import genius.core.boaframework.NoModel;
|
---|
| 5 | import negotiator.boaframework.acceptanceconditions.other.AC_Next;
|
---|
| 6 | import negotiator.boaframework.omstrategy.NullStrategy;
|
---|
| 7 |
|
---|
| 8 | import java.util.HashMap;
|
---|
| 9 |
|
---|
| 10 | @SuppressWarnings("deprecation")
|
---|
| 11 | public class AverageTitForTat1 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 AverageTitForTatOfferingGamma1(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 1";
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.