Last change
on this file since 266 was 257, checked in by Faria Nassiri Mofakham, 5 years ago |
1) BilateralNegotiation which extends Thread added to onetomany. According to BCG protocol this creates two threads, one for a buyer and one for a seller (it now generates null agents). 2) An ActionListener added to close button in onetomany.etc.GUI.
|
File size:
531 bytes
|
Rev | Line | |
---|
[257] | 1 | /**
|
---|
| 2 | *
|
---|
| 3 | */
|
---|
| 4 | package onetomany;
|
---|
| 5 |
|
---|
| 6 | import onetomany.bargainingchipsgame.Bundle;
|
---|
| 7 | import onetomany.bargainingchipsgame.players.Agent;
|
---|
| 8 | import onetomany.bargainingchipsgame.players.utilityfunction.Utility_Function;
|
---|
| 9 |
|
---|
| 10 | /**
|
---|
| 11 | * @author Faria Nassiri-Mofakham
|
---|
| 12 | *
|
---|
| 13 | */
|
---|
| 14 | public class Negotiator implements Runnable
|
---|
| 15 | {
|
---|
| 16 |
|
---|
| 17 | Agent g;
|
---|
| 18 | public Negotiator(Agent g)
|
---|
| 19 | {
|
---|
| 20 | // store parameter for later user
|
---|
| 21 | // g= new Agent( name, wishlist, u, deadline, picture);
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | public void run()
|
---|
| 25 | {
|
---|
| 26 | System.out.println(g);
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.