Package jadex.bdiv3.examples.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>
acceptProposal(java.lang.String title, int price)
Buy a bookIFuture<java.lang.Integer>
callForProposal(java.lang.String title)
Ask the seller for a a quote on a book.
-
-
-
Method Detail
-
callForProposal
IFuture<java.lang.Integer> callForProposal(java.lang.String title)
Ask the seller for a a quote on a book.- Parameters:
title
- The book title.- Returns:
- The price.
-
acceptProposal
IFuture<java.lang.Void> acceptProposal(java.lang.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.
-
-