Interface IBuyBookService

All Known Implementing Classes:
SellerAgent

public interface IBuyBookService
The buy book service is provided by the seller and used by the buyer.
  • Method Summary

    Modifier and Type
    Method
    Description
    jadex.future.IFuture<Void>
    acceptProposal(String title, int price)
    Buy a book
    jadex.future.IFuture<Integer>
    Ask the seller for a a quote on a book.
  • Method Details

    • callForProposal

      jadex.future.IFuture<Integer> callForProposal(String title)
      Ask the seller for a a quote on a book.
      Parameters:
      title - The book title.
      Returns:
      The price.
    • acceptProposal

      jadex.future.IFuture<Void> acceptProposal(String title, int price)
      Buy a book
      Parameters:
      title - The book title.
      price - The price to pay.
      Returns:
      A future indicating if the transaction was successful.