source: src/main/java/onetomany/bargainingchipsgame/players/BoulwareAgent.java@ 314

Last change on this file since 314 was 314, checked in by Tim Baarslag, 5 years ago

Ready for v0

File size: 1.1 KB
RevLine 
[298]1package onetomany.bargainingchipsgame.players;
2
3import java.util.concurrent.BlockingQueue;
[310]4import java.util.concurrent.LinkedBlockingQueue;
[298]5
[309]6import onetomany.bargainingchipsgame.NegotiationContext;
[298]7import onetomany.bargainingchipsgame.interactions.Offer;
8import onetomany.bargainingchipsgame.players.utilityfunction.UtilityFunction;
9
[314]10public class BoulwareAgent extends TimeDependentNegotiationAgent
[298]11{
[309]12 public BoulwareAgent(String name, UtilityFunction u, NegotiationContext nc,
[298]13 BlockingQueue<Offer> in, BlockingQueue<Offer> out,
14 BlockingQueue<CoordinationMessage> cin,
[314]15 BlockingQueue<StatusMessage> cout)
16 {
[309]17 super(name, u, nc, in, out, cin, cout);
[298]18 }
[310]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>(),
[312]28 new LinkedBlockingQueue<StatusMessage>());
[310]29 }
[298]30
31 @Override
32 public double getE() {
33 return 0.2;
34 }
35}
Note: See TracBrowser for help on using the repository browser.