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