public class ShopService extends java.lang.Object implements IShopService
| Modifier and Type | Field and Description |
|---|---|
protected jadex.bridge.IInternalAccess |
comp
The component.
|
protected java.lang.String |
name
The shop name.
|
| Constructor and Description |
|---|
ShopService()
Create a new shop service.
|
ShopService(java.lang.String name)
Create a new shop service.
|
| Modifier and Type | Method and Description |
|---|---|
jadex.commons.future.IFuture<ItemInfo> |
buyItem(java.lang.String item,
double price)
Buy an item.
|
jadex.commons.future.IFuture<ItemInfo[]> |
getCatalog()
Get the item catalog.
|
java.lang.String |
getName()
Get the shop name.
|
java.lang.String |
toString()
Get the string representation.
|
protected jadex.bridge.IInternalAccess comp
protected java.lang.String name
public ShopService()
public ShopService(java.lang.String name)
public java.lang.String getName()
getName in interface IShopServicepublic jadex.commons.future.IFuture<ItemInfo> buyItem(java.lang.String item, double price)
buyItem in interface IShopServiceitem - The item.public jadex.commons.future.IFuture<ItemInfo[]> getCatalog()
getCatalog in interface IShopServicepublic java.lang.String toString()
toString in class java.lang.Object