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:
521 bytes
|
Line | |
---|
1 | package genius.core;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 |
|
---|
5 | public enum Feedback {
|
---|
6 | BETTER, SAME, WORSE;
|
---|
7 |
|
---|
8 | public static Vote isAcceptable(List<Feedback> feedbackList) {
|
---|
9 |
|
---|
10 | for (Feedback currentFeedback : feedbackList)
|
---|
11 | if (currentFeedback == Feedback.WORSE)
|
---|
12 | return Vote.REJECT;
|
---|
13 |
|
---|
14 | return Vote.ACCEPT;
|
---|
15 | }
|
---|
16 |
|
---|
17 | public static Feedback madeupFeedback(double previous, double current) {
|
---|
18 |
|
---|
19 | if (previous > current)
|
---|
20 | return Feedback.WORSE;
|
---|
21 | else if (previous == current)
|
---|
22 | return Feedback.SAME;
|
---|
23 | else
|
---|
24 | return Feedback.BETTER;
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.