Package jadex.bdiv3.examples.shop
Class ShopCapa
- java.lang.Object
-
- jadex.bdiv3.examples.shop.ShopCapa
-
public class ShopCapa extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classShopCapa.SellGoal
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ItemInfo>getCatalog()Get the catalog.doublegetMoney()java.lang.StringgetShopname()Get the shop name.voidsell(ShopCapa.SellGoal goal)Plan for handling a sell goal.voidsetMoney(double money)
-
-
-
Field Detail
-
shopname
protected java.lang.String shopname
The shop name.
-
catalog
protected java.util.List<ItemInfo> catalog
The shop catalog.
-
-
Constructor Detail
-
ShopCapa
public ShopCapa(java.lang.String shopname, java.util.List<ItemInfo> catalog)Create a shop capability.
-
-
Method Detail
-
getMoney
public double getMoney()
-
setMoney
public void setMoney(double money)
-
getShopname
public java.lang.String getShopname()
Get the shop name.
-
getCatalog
public java.util.List<ItemInfo> getCatalog()
Get the catalog.
-
sell
public void sell(ShopCapa.SellGoal goal)
Plan for handling a sell goal.- Parameters:
goal- The goal.
-
-