public class ShopService
extends jadex.bridge.service.BasicService
implements jadex.bdi.examples.shop.IShopService
| Modifier and Type | Field and Description |
|---|---|
protected jadex.bridge.IExternalAccess |
comp
The component.
|
protected java.lang.String |
name
The shop name.
|
| Constructor and Description |
|---|
ShopService(jadex.bridge.IExternalAccess comp,
java.lang.String name)
Create a new shop service.
|
| Modifier and Type | Method and Description |
|---|---|
jadex.commons.future.IFuture<jadex.bdi.examples.shop.ItemInfo> |
buyItem(java.lang.String item,
double price)
Buy an item.
|
jadex.commons.future.IFuture<jadex.bdi.examples.shop.ItemInfo[]> |
getCatalog()
Get the item catalog.
|
java.lang.String |
getName()
Get the shop name.
|
java.lang.String |
toString()
Get the string representation.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInterfaceType, getInternalAccess, getMethodTimeout, getPropertyMap, getProviderId, getServiceIdentifier, hashCode, initNFProperties, isValid, setComponentAccess, setPropertyMap, shutdownService, startServiceprotected jadex.bridge.IExternalAccess comp
protected java.lang.String name
public ShopService(jadex.bridge.IExternalAccess comp,
java.lang.String name)
comp - The active component.public java.lang.String getName()
getName in interface jadex.bdi.examples.shop.IShopServicepublic jadex.commons.future.IFuture<jadex.bdi.examples.shop.ItemInfo> buyItem(java.lang.String item,
double price)
buyItem in interface jadex.bdi.examples.shop.IShopServiceitem - The item.public jadex.commons.future.IFuture<jadex.bdi.examples.shop.ItemInfo[]> getCatalog()
getCatalog in interface jadex.bdi.examples.shop.IShopServicepublic java.lang.String toString()
toString in class jadex.bridge.service.BasicService