Package jadex.bdi.examples.booktrading
Interface IBuyBookService
- 
- All Known Implementing Classes:
- BuyBookService
 
 public interface IBuyBookServiceThe buy book service is provided by the seller and used by the buyer.
- 
- 
Method SummaryAll 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- 
callForProposalIFuture<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.
 
 - 
acceptProposalIFuture<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.
 
 
- 
 
-