Package jadex.bdi.booktrading
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 TypeMethodDescriptionjadex.future.IFuture
<Void> acceptProposal
(String title, int price) Buy a bookjadex.future.IFuture
<Integer> callForProposal
(String title) Ask the seller for a a quote on a book.
-
Method Details
-
callForProposal
Ask the seller for a a quote on a book.- Parameters:
title
- The book title.- Returns:
- The price.
-
acceptProposal
Buy a book- Parameters:
title
- The book title.price
- The price to pay.- Returns:
- A future indicating if the transaction was successful.
-