
jadex.bdi.examples.booktrading.serviceimpl.IBuyBookService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdi Show documentation
Show all versions of jadex-applications-bdi Show documentation
The Jadex BDI applications package contain
several example applications, benchmarks and
testcases using BDI agents.
The newest version!
package jadex.bdi.examples.booktrading.serviceimpl;
import jadex.commons.future.IFuture;
/**
* The buy book service is provided by the seller and used by the buyer.
*/
public interface IBuyBookService
{
/**
* Ask the seller for a a quote on a book.
* @param title The book title.
* @return The price.
*/
public IFuture callForProposal(String title);
/**
* Buy a book
* @param title The book title.
* @param price The price to pay.
* @return A future indicating if the transaction was successful.
*/
public IFuture acceptProposal(String title, int price);
// /**
// * Refuse to buy a book
// * @param title The book title.
// * @param price The requested price.
// */
// public void rejectProposal(String title, int price);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy