1 | package onetomany.bargainingchipsgame.players;
|
---|
2 |
|
---|
3 | import java.util.concurrent.BlockingQueue;
|
---|
4 | import java.util.concurrent.LinkedBlockingQueue;
|
---|
5 |
|
---|
6 | import onetomany.bargainingchipsgame.NegotiationContext;
|
---|
7 | import onetomany.bargainingchipsgame.interactions.Offer;
|
---|
8 | import onetomany.bargainingchipsgame.players.utilityfunction.UtilityFunction;
|
---|
9 |
|
---|
10 | public class SimpleSeller extends Agent
|
---|
11 | {
|
---|
12 | /**
|
---|
13 | * Dummy coordinator queues are created but are never attached
|
---|
14 | */
|
---|
15 | public SimpleSeller(String name, UtilityFunction u, NegotiationContext nc,
|
---|
16 | BlockingQueue<Offer> in, BlockingQueue<Offer> out)
|
---|
17 | {
|
---|
18 | super(name, u, nc, in, out,
|
---|
19 | new LinkedBlockingQueue<CoordinationMessage>(),
|
---|
20 | new LinkedBlockingQueue<NegotiationStatusMessage>());
|
---|
21 | }
|
---|
22 |
|
---|
23 | @Override
|
---|
24 | protected void receiveOffer(Offer bundle)
|
---|
25 | {
|
---|
26 | // TODO Auto-generated method stub
|
---|
27 | }
|
---|
28 |
|
---|
29 | @Override
|
---|
30 | protected Offer sendOffer()
|
---|
31 | {
|
---|
32 | Offer sampleOffer = Offer.getSampleOffer("Green", k);
|
---|
33 | return sampleOffer;
|
---|
34 | }
|
---|
35 |
|
---|
36 | @Override
|
---|
37 | protected Offer sendOpeningOffer()
|
---|
38 | {
|
---|
39 | // The buyer should start
|
---|
40 | return null;
|
---|
41 | }
|
---|
42 |
|
---|
43 | @Override
|
---|
44 | protected void receiveCoordinationMessage(CoordinationMessage cpoll)
|
---|
45 | {
|
---|
46 | }
|
---|
47 |
|
---|
48 | }
|
---|