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:
886 bytes
|
Rev | Line | |
---|
[153] | 1 | package agents.rlboa;
|
---|
[67] | 2 |
|
---|
[153] | 3 | import genius.core.Bid;
|
---|
[67] | 4 | import genius.core.events.MultipartyNegoActionEvent;
|
---|
| 5 | import genius.core.events.NegotiationEvent;
|
---|
| 6 | import genius.core.listener.Listener;
|
---|
| 7 |
|
---|
| 8 | public interface RLBOA extends Listener<NegotiationEvent> {
|
---|
[153] | 9 |
|
---|
[67] | 10 | /**
|
---|
| 11 | * This method should pass the reward and newState trough to its component
|
---|
| 12 | * that uses an RL-strategy
|
---|
| 13 | *
|
---|
| 14 | * @param reward
|
---|
| 15 | * @param newState
|
---|
| 16 | */
|
---|
[153] | 17 | public void observeEnvironment(double reward, AbstractState newState);
|
---|
[67] | 18 |
|
---|
| 19 | /**
|
---|
| 20 | * This method should instantiate a new AbstractState object that represents
|
---|
| 21 | * a distinct state in the environment.
|
---|
| 22 | * @return
|
---|
| 23 | */
|
---|
| 24 | public AbstractState getStateRepresentation(MultipartyNegoActionEvent negoEvent);
|
---|
| 25 |
|
---|
[153] | 26 | /**
|
---|
| 27 | * This method shoud implement the reward function of the Agent, based
|
---|
| 28 | * on an incomming bid.
|
---|
| 29 | *
|
---|
| 30 | * @param agreement
|
---|
| 31 | * @return
|
---|
| 32 | */
|
---|
| 33 | public double getReward(Bid agreement);
|
---|
[67] | 34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.