public class BuyBookService extends java.lang.Object implements IBuyBookService
Modifier and Type | Field and Description |
---|---|
protected jadex.bdiv3x.features.IBDIXAgentFeature |
agent
The agent.
|
Constructor and Description |
---|
BuyBookService() |
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
acceptProposal(java.lang.String title,
int price)
Buy a book
|
jadex.commons.future.IFuture<java.lang.Integer> |
callForProposal(java.lang.String title)
Ask the seller for a a quote on a book.
|
public jadex.commons.future.IFuture<java.lang.Integer> callForProposal(java.lang.String title)
callForProposal
in interface IBuyBookService
title
- The book title.public jadex.commons.future.IFuture<java.lang.Void> acceptProposal(java.lang.String title, int price)
acceptProposal
in interface IBuyBookService
title
- The book title.price
- The price to pay.