Package jadex.bdiv3.examples.shop
Class CustomerCapability
- java.lang.Object
- 
- jadex.bdiv3.examples.shop.CustomerCapability
 
- 
 public class CustomerCapability extends java.lang.ObjectCustomer capability.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCustomerCapability.BuyItemGoal to buy an item.
 - 
Field SummaryFields Modifier and Type Field Description protected ICapabilitycapaThe capability.protected java.util.List<ItemInfo>inventoryThe inventory.
 - 
Constructor SummaryConstructors Constructor Description CustomerCapability()Called when the agent is started.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuyItem(CustomerCapability.BuyItem big)Plan for buying an item.ICapabilitygetCapability()doublegetMoney()Get the money.voidsetMoney(double money)Set the money.
 
- 
- 
- 
Field Detail- 
capaprotected ICapability capa The capability.
 - 
inventoryprotected java.util.List<ItemInfo> inventory The inventory.
 
- 
 - 
Method Detail- 
getMoneypublic double getMoney() Get the money.
 - 
setMoneypublic void setMoney(double money) Set the money.
 - 
buyItempublic void buyItem(CustomerCapability.BuyItem big) Plan for buying an item.
 - 
getCapabilitypublic ICapability getCapability() - Returns:
- the capa
 
 
- 
 
-