public interface IJadexPlatformInterface
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatchEvent(IJadexAndroidEvent event)
Dispatch an event.
|
IExternalAccess |
getExternalPlatformAccess()
Deprecated.
use getPlatformAccess instead.
|
IExternalAccess |
getPlatformAccess()
Returns the Jadex External Platform Access object.
|
IComponentIdentifier |
getPlatformId()
Retrieves the platformId of the last started Platform, if any.
|
<S> <any> |
getService(java.lang.Class<S> serviceClazz)
Looks up a service.
|
<S> <any> |
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.
|
<any> |
startComponent(java.lang.String name,
java.lang.Class<?> clazz)
Start a new Component on a given platform with default
CreationInfo. |
<any> |
startComponent(java.lang.String name,
java.lang.Class<?> clazz,
CreationInfo creationInfo)
Start a new Component on a given platform.
|
<any> |
startComponent(java.lang.String name,
java.lang.String modelPath)
Start a new Component on a given platform.
|
<any> |
startComponent(java.lang.String name,
java.lang.String modelPath,
CreationInfo creationInfo)
Start a new Component.
|
<any> |
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.
|
IExternalAccess getExternalPlatformAccess()
platformID - 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> <any> getService(java.lang.Class<S> serviceClazz)
platformId - Id of the platform to use for lookupserviceClazz - Class of the service (interface) to findgetsService<S> <any> 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.getsServiceIComponentIdentifier getPlatformId()
IComponentIdentifier platformId or null.void shutdownJadexPlatform()
platformID - Platform to terminate.<any> 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 instantiate<any> startComponent(java.lang.String name,
java.lang.String modelPath,
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.<any> 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 component<any> startComponent(java.lang.String name,
java.lang.Class<?> clazz,
CreationInfo creationInfo)
name - name of the newly created componentclazz - Class of the new componentcreationInfo - CreationInfo to pass to the started Component.<any> 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(IJadexAndroidEvent event)
throws WrongEventClassError
event - WrongEventClassError