public class CustomerCapability
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CustomerCapability.BuyItem
Goal to buy an item.
|
Modifier and Type | Field and Description |
---|---|
protected jadex.bdiv3.runtime.ICapability |
capa
The capability.
|
protected java.util.List<ItemInfo> |
inventory
The inventory.
|
Constructor and Description |
---|
CustomerCapability()
Called when the agent is started.
|
Modifier and Type | Method and Description |
---|---|
void |
buyItem(CustomerCapability.BuyItem big)
Plan for buying an item.
|
double |
getMoney()
Get the money.
|
void |
setMoney(double money)
Set the money.
|
protected jadex.bdiv3.runtime.ICapability capa
protected java.util.List<ItemInfo> inventory
public double getMoney()
public void setMoney(double money)
public void buyItem(CustomerCapability.BuyItem big)