public interface IJadexPlatformInterface
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatchEvent(jadex.bridge.service.types.context.IJadexAndroidEvent event)
Dispatch an event.
|
jadex.bridge.IExternalAccess |
getExternalPlatformAccess()
Deprecated.
use getPlatformAccess instead.
|
jadex.bridge.IExternalAccess |
getPlatformAccess()
Returns the Jadex External Platform Access object.
|
jadex.bridge.IComponentIdentifier |
getPlatformId()
Retrieves the platformId of the last started Platform, if any.
|
<S> jadex.commons.future.IFuture<S> |
getService(java.lang.Class<S> serviceClazz)
Looks up a service.
|
<S> jadex.commons.future.IFuture<S> |
getService(java.lang.Class<S> serviceClazz,
java.lang.String scope)
Looks up a service.
|
<S> S |
getsService(java.lang.Class<S> serviceClazz)
Looks up a service and returns it synchronously.
|
boolean |
isPlatformRunning()
Returns true if given jadex platform is running.
|
void |
registerEventReceiver(IEventReceiver<?> rec)
Register an event receiver.
|
void |
shutdownJadexPlatform()
Terminates the running jadex platform with the given ID.
|
jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
startComponent(java.lang.String name,
java.lang.Class<?> clazz)
Start a new Component on a given platform with default
CreationInfo. |
jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
startComponent(java.lang.String name,
java.lang.Class<?> clazz,
jadex.bridge.service.types.cms.CreationInfo creationInfo)
Start a new Component on a given platform.
|
jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
startComponent(java.lang.String name,
java.lang.String modelPath)
Start a new Component on a given platform.
|
jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
startComponent(java.lang.String name,
java.lang.String modelPath,
jadex.bridge.service.types.cms.CreationInfo creationInfo)
Start a new Component.
|
jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
startMicroAgent(java.lang.String name,
java.lang.Class<?> clazz)
Deprecated.
Use startComponent() instead for all component types.
|
boolean |
unregisterEventReceiver(IEventReceiver<?> rec)
Unregister an event receiver.
|
jadex.bridge.IExternalAccess getExternalPlatformAccess()
platformID - jadex.bridge.IExternalAccess getPlatformAccess()
platformID - boolean isPlatformRunning()
<S> S getsService(java.lang.Class<S> serviceClazz)
platformId - Id of the platform to use for lookupserviceClazz - Class of the service (interface) to find<S> jadex.commons.future.IFuture<S> getService(java.lang.Class<S> serviceClazz)
platformId - Id of the platform to use for lookupserviceClazz - Class of the service (interface) to findgetsService<S> jadex.commons.future.IFuture<S> getService(java.lang.Class<S> serviceClazz,
java.lang.String scope)
platformId - Id of the platform to use for lookupserviceClazz - Class of the service (interface) to findscope - Search scope. See RequiredServiceInfo constants.getsServicejadex.bridge.IComponentIdentifier getPlatformId()
IComponentIdentifier platformId or null.void shutdownJadexPlatform()
platformID - Platform to terminate.jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> startMicroAgent(java.lang.String name,
java.lang.Class<?> clazz)
platformId - Identifier of the jadex platformname - name of the newly created agentclazz - class of the agent to instantiatejadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> startComponent(java.lang.String name,
java.lang.String modelPath,
jadex.bridge.service.types.cms.CreationInfo creationInfo)
name - name of the newly created componentmodelPath - Path to the model file of the new componentcreationInfo - CreationInfo to pass to the started Component.jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> startComponent(java.lang.String name,
java.lang.String modelPath)
platformId - Identifier of the jadex platformname - name of the newly created componentmodelPath - Path to the model file of the new componentjadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> startComponent(java.lang.String name,
java.lang.Class<?> clazz,
jadex.bridge.service.types.cms.CreationInfo creationInfo)
name - name of the newly created componentclazz - Class of the new componentcreationInfo - CreationInfo to pass to the started Component.jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> startComponent(java.lang.String name,
java.lang.Class<?> clazz)
CreationInfo.name - name of the newly created componentmodelPath - Path to the model file of the new componentvoid registerEventReceiver(IEventReceiver<?> rec)
rec - boolean unregisterEventReceiver(IEventReceiver<?> rec)
rec - boolean dispatchEvent(jadex.bridge.service.types.context.IJadexAndroidEvent event)
throws WrongEventClassError
event - WrongEventClassError