Package jadex.examples.shop
Class ShopAgent
- java.lang.Object
- 
- jadex.examples.shop.ShopAgent
 
- 
 public class ShopAgent extends java.lang.ObjectMicro agent implementation of the shop.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected doublemoneyThe money account.
 - 
Constructor SummaryConstructors Constructor Description ShopAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>agentCreated()Called once after agent creation.ItemInfobuyItem(java.lang.String name, double price)Buy an item.ItemInfo[]getCatalog()Get the item catalog.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
moneyprotected double money The money account.
 
- 
 - 
Method Detail- 
agentCreatedpublic IFuture<java.lang.Void> agentCreated() Called once after agent creation.
 - 
buyItempublic ItemInfo buyItem(java.lang.String name, double price) Buy an item.- Parameters:
- item- The item.
 
 - 
getCatalogpublic ItemInfo[] getCatalog() Get the item catalog.- Returns:
- The catalog.
 
 
- 
 
-