Last change
on this file since 290 was 288, checked in by Tim Baarslag, 5 years ago |
Everything works with general Agents now
|
File size:
1.1 KB
|
Line | |
---|
1 | package onetomany.bargainingchipsgame.players;
|
---|
2 |
|
---|
3 | import java.util.concurrent.BlockingQueue;
|
---|
4 | import java.util.concurrent.LinkedBlockingQueue;
|
---|
5 |
|
---|
6 | import onetomany.bargainingchipsgame.interactions.Offer;
|
---|
7 | import onetomany.bargainingchipsgame.players.utilityfunction.UtilityFunction;
|
---|
8 |
|
---|
9 | public class SimpleSeller extends Agent
|
---|
10 | {
|
---|
11 | /**
|
---|
12 | * Dummy coordinator queues are created but are never attached
|
---|
13 | */
|
---|
14 | public SimpleSeller(String name, UtilityFunction u, BlockingQueue<Offer> in,
|
---|
15 | BlockingQueue<Offer> out)
|
---|
16 | {
|
---|
17 | super(name, u, in, out,
|
---|
18 | new LinkedBlockingQueue<CoordinationMessage>(),
|
---|
19 | new LinkedBlockingQueue<NegotiationStatusMessage>());
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | protected void receiveOffer(Offer bundle)
|
---|
24 | {
|
---|
25 | // TODO Auto-generated method stub
|
---|
26 | }
|
---|
27 |
|
---|
28 | @Override
|
---|
29 | protected Offer sendOffer()
|
---|
30 | {
|
---|
31 | Offer sampleOffer = Offer.getSampleOffer("Green", k);
|
---|
32 | return sampleOffer;
|
---|
33 | }
|
---|
34 |
|
---|
35 | @Override
|
---|
36 | protected Offer sendOpeningOffer()
|
---|
37 | {
|
---|
38 | // The buyer should start
|
---|
39 | return null;
|
---|
40 | }
|
---|
41 |
|
---|
42 | @Override
|
---|
43 | protected void receiveCoordinationMessage(CoordinationMessage cpoll)
|
---|
44 | {
|
---|
45 | }
|
---|
46 |
|
---|
47 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.