Package jadex.bdi.shop
Class ShopService
java.lang.Object
jadex.bdi.shop.ShopService
- All Implemented Interfaces:
IShopService
The shop for buying goods at the shop.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
shopagent
The component. -
agent
protected jadex.core.IComponent agentThe component. -
name
The shop name.
-
-
Constructor Details
-
ShopService
Create a new shop service.
-
-
Method Details
-
getName
Get the shop name.- Specified by:
getName
in interfaceIShopService
- Returns:
- The name.
-
buyItem
Buy an item.- Specified by:
buyItem
in interfaceIShopService
- Parameters:
item
- The item.
-
getCatalog
Get the item catalog.- Specified by:
getCatalog
in interfaceIShopService
- Returns:
- The catalog.
-
toString
Get the string representation.
-