public class ShopService extends java.lang.Object implements IShopService
Modifier and Type | Field and Description |
---|---|
protected jadex.bdiv3.runtime.ICapability |
capa
The component.
|
protected java.lang.String |
name
The shop name.
|
Constructor and Description |
---|
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.bdiv3.runtime.ICapability capa
protected java.lang.String name
public java.lang.String getName()
getName
in interface IShopService
public jadex.commons.future.IFuture<ItemInfo> buyItem(java.lang.String item, double price)
buyItem
in interface IShopService
item
- The item.public jadex.commons.future.IFuture<ItemInfo[]> getCatalog()
getCatalog
in interface IShopService
public java.lang.String toString()
toString
in class java.lang.Object