Package jadex.bdiv3.examples.shop
Interface IShopService
-
- All Known Implementing Classes:
ShopService
public interface IShopService
The shop interface for buying goods at the shop.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jadex.commons.future.IFuture<ItemInfo>
buyItem(java.lang.String item, double price)
Buy an item.jadex.commons.future.IFuture<ItemInfo[]>
getCatalog()
Get the item catalog.java.lang.String
getName()
Get the shop name.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get the shop name.- Returns:
- The name.
-
buyItem
jadex.commons.future.IFuture<ItemInfo> buyItem(java.lang.String item, double price)
Buy an item.- Parameters:
item
- The item.
-
getCatalog
jadex.commons.future.IFuture<ItemInfo[]> getCatalog()
Get the item catalog.- Returns:
- The catalog.
-
-