コード例 #1
0
 /**
  * A buyer asks the sales department for the price they are willing to sell one of their good.
  *
  * @param buyer the economic agent that asks you that
  * @return a price quoted or -1 if there are no quotes
  */
 @Override
 public Quote askedForASaleQuote(EconomicAgent buyer, GoodType type) {
   Good good = peekGood(type);
   if (good != null) return Quote.newSellerQuote(this, saleQuote, good);
   else return Quote.emptySellQuote(null);
 }