public class ShopAgent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The agent.
|
protected double |
money
The money account.
|
Constructor and Description |
---|
ShopAgent() |
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
agentCreated()
Called once after agent creation.
|
jadex.bdi.examples.shop.ItemInfo |
buyItem(java.lang.String name,
double price)
Buy an item.
|
jadex.bdi.examples.shop.ItemInfo[] |
getCatalog()
Get the item catalog.
|
protected jadex.bridge.IInternalAccess agent
protected double money
public jadex.commons.future.IFuture<java.lang.Void> agentCreated()
public jadex.bdi.examples.shop.ItemInfo buyItem(java.lang.String name, double price)
item
- The item.public jadex.bdi.examples.shop.ItemInfo[] getCatalog()