Package jadex.bdiv3.examples.shop
Class CustomerCapability
- java.lang.Object
-
- jadex.bdiv3.examples.shop.CustomerCapability
-
public class CustomerCapability extends java.lang.Object
Customer capability.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CustomerCapability.BuyItem
Goal to buy an item.
-
Field Summary
Fields Modifier and Type Field Description protected ICapability
capa
The capability.protected java.util.List<ItemInfo>
inventory
The 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 void
buyItem(CustomerCapability.BuyItem big)
Plan for buying an item.ICapability
getCapability()
double
getMoney()
Get the money.void
setMoney(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
-
-