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 Summary
Nested Classes Modifier and Type Class Description static classCustomerCapability.BuyItemGoal to buy an item.
-
Field Summary
Fields Modifier and Type Field Description protected ICapabilitycapaThe capability.protected java.util.List<ItemInfo>inventoryThe inventory.
-
Constructor Summary
Constructors Constructor Description CustomerCapability()Called when the agent is started.
-
Method Summary
All 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
-
capa
protected ICapability capa
The capability.
-
inventory
protected java.util.List<ItemInfo> inventory
The inventory.
-
-
Method Detail
-
getMoney
public double getMoney()
Get the money.
-
setMoney
public void setMoney(double money)
Set the money.
-
buyItem
public void buyItem(CustomerCapability.BuyItem big)
Plan for buying an item.
-
getCapability
public ICapability getCapability()
- Returns:
- the capa
-
-