[298] | 1 | package onetomany.bargainingchipsgame.players;
|
---|
| 2 |
|
---|
| 3 | import java.util.concurrent.BlockingQueue;
|
---|
[310] | 4 | import java.util.concurrent.LinkedBlockingQueue;
|
---|
[298] | 5 |
|
---|
[309] | 6 | import onetomany.bargainingchipsgame.NegotiationContext;
|
---|
[298] | 7 | import onetomany.bargainingchipsgame.interactions.Offer;
|
---|
| 8 | import onetomany.bargainingchipsgame.players.utilityfunction.UtilityFunction;
|
---|
| 9 |
|
---|
[309] | 10 | public class BoulwareAgent extends AbstractTimeDependentNegotiationParty
|
---|
[298] | 11 | {
|
---|
[309] | 12 | public BoulwareAgent(String name, UtilityFunction u, NegotiationContext nc,
|
---|
[298] | 13 | BlockingQueue<Offer> in, BlockingQueue<Offer> out,
|
---|
| 14 | BlockingQueue<CoordinationMessage> cin,
|
---|
[312] | 15 | BlockingQueue<StatusMessage> cout) {
|
---|
[309] | 16 | super(name, u, nc, in, out, cin, cout);
|
---|
[298] | 17 | }
|
---|
[310] | 18 |
|
---|
| 19 | /**
|
---|
| 20 | * For sellers dummy coordinator queues are created but are never linked up
|
---|
| 21 | */
|
---|
| 22 | public BoulwareAgent(String name, UtilityFunction u, NegotiationContext nc,
|
---|
| 23 | BlockingQueue<Offer> in, BlockingQueue<Offer> out)
|
---|
| 24 | {
|
---|
| 25 | super(name, u, nc, in, out,
|
---|
| 26 | new LinkedBlockingQueue<CoordinationMessage>(),
|
---|
[312] | 27 | new LinkedBlockingQueue<StatusMessage>());
|
---|
[310] | 28 | }
|
---|
[298] | 29 |
|
---|
| 30 | @Override
|
---|
| 31 | public double getE() {
|
---|
| 32 | return 0.2;
|
---|
| 33 | }
|
---|
| 34 | }
|
---|