source: src/main/java/onetomany/bargainingchipsgame/interactions/SampleOffer.java@ 273

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

Buyer and Seller agents

File size: 435 bytes
Line 
1package onetomany.bargainingchipsgame.interactions;
2
3import onetomany.bargainingchipsgame.BundleBuilder;
4
5/**
6 * Just a sample example of an offer
7 */
8public class SampleOffer extends Offer
9{
10 public SampleOffer(int qty)
11 {
12 this("Red", qty);
13 }
14
15 public SampleOffer(String color, int qty)
16 {
17 this.type = MessageType.BID;
18 this.bundle = new BundleBuilder()
19 .addStack(color, 7.0, qty)
20 .build();
21 }
22}
Note: See TracBrowser for help on using the repository browser.