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:
485 bytes
|
Line | |
---|
1 | package agents.anac.y2013.TMFAgent;
|
---|
2 |
|
---|
3 | import genius.core.Bid;
|
---|
4 |
|
---|
5 | public class ComparableBid implements Comparable<ComparableBid>{
|
---|
6 | public double utility;
|
---|
7 | public Bid bid;
|
---|
8 |
|
---|
9 | public ComparableBid (Bid b,double u){
|
---|
10 | bid = new Bid (b);
|
---|
11 | utility = u;
|
---|
12 | }
|
---|
13 |
|
---|
14 | public int compareTo(ComparableBid other){
|
---|
15 | if(other.utility < utility)
|
---|
16 | return -1;
|
---|
17 | else if(other.utility > utility)
|
---|
18 | return 1;
|
---|
19 | else
|
---|
20 | return 0;
|
---|
21 | }
|
---|
22 |
|
---|
23 | public String toString(){
|
---|
24 | return utility + ": " + bid.toString();
|
---|
25 | }
|
---|
26 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.