public class BDIAgentFactory extends BasicService implements IComponentFactory, jadex.kernelbase.IBootstrapFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
FILETYPE_BDIAGENT
The bdi agent file type.
|
EMPTY_SERVICES| Constructor and Description |
|---|
BDIAgentFactory(IServiceProvider provider)
Create a new agent factory.
|
BDIAgentFactory(IServiceProvider provider,
Map<String,Object> properties)
Create a new agent factory.
|
BDIAgentFactory(String providerid)
Create a new agent factory for startup.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addExcludedMethods(Map props,
String[] excludes)
Add excluded methods.
|
IFuture<Tuple2<IComponentInstance,IComponentAdapter>> |
createComponentInstance(IComponentDescription desc,
IComponentAdapterFactory factory,
IModelInfo model,
String config,
Map<String,Object> arguments,
IExternalAccess parent,
RequiredServiceBinding[] bindings,
ProvidedServiceInfo[] pinfos,
boolean copy,
boolean realtime,
boolean persist,
IPersistInfo persistinfo,
IIntermediateResultListener<Tuple2<String,Object>> resultlistener,
Future<Void> init,
LocalServiceRegistry registry)
Create a component instance.
|
IFuture<String> |
getComponentType(String model,
String[] imports,
IResourceIdentifier rid)
Get the component type of a model.
|
IFuture<byte[]> |
getComponentTypeIcon(String type)
Get a default icon for a file type.
|
String[] |
getComponentTypes()
Get the names of ADF file types supported by this factory.
|
Map<String,Object> |
getProperties(String type)
Get the properties.
|
IFuture<Boolean> |
isLoadable(String model,
String[] imports,
IResourceIdentifier rid)
Test if a model can be loaded by the factory.
|
IFuture<Boolean> |
isStartable(String model,
String[] imports,
IResourceIdentifier rid)
Test if a model is startable (e.g.
|
IFuture<IModelInfo> |
loadModel(String model,
String[] imports,
IResourceIdentifier rid)
Load a model.
|
IFuture<Void> |
shutdownService()
Shutdown the service.
|
IFuture<Void> |
startService()
Start the service.
|
IFuture<Void> |
startService(IInternalAccess component,
IResourceIdentifier rid)
Start the service.
|
addNFProperties, createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInternalAccess, getLocalDefaultTimeout, getPropertyMap, getProviderId, getRemoteDefaultTimeout, getScaledLocalDefaultTimeout, getScaledRemoteDefaultTimeout, getServiceIdentifier, hashCode, initNFProperties, isValid, setComponentAccess, setLocalDefaultTimeout, setPropertyMap, setRemoteDefaultTimeout, toStringaddMethodNFProperty, getMethodNFAllPropertyNames, getMethodNFPropertyMetaInfo, getMethodNFPropertyMetaInfos, getMethodNFPropertyMetaInfos, getMethodNFPropertyNames, getMethodNFPropertyValue, getMethodNFPropertyValue, removeMethodNFProperty, shutdownNFPropertyProvideraddNFProperty, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyValue, getNFPropertyValue, getParent, removeNFProperty, setParentaddNFProperty, getNFAllPropertyNames, getNFPropertyMetaInfo, getNFPropertyMetaInfos, getNFPropertyNames, getNFPropertyValue, getNFPropertyValue, removeNFProperty, shutdownNFPropertyProvideraddMethodNFProperty, getMethodNFAllPropertyNames, getMethodNFPropertyMetaInfo, getMethodNFPropertyMetaInfos, getMethodNFPropertyMetaInfos, getMethodNFPropertyNames, getMethodNFPropertyValue, getMethodNFPropertyValue, removeMethodNFProperty, shutdownNFPropertyProviderpublic static final String FILETYPE_BDIAGENT
public BDIAgentFactory(IServiceProvider provider)
public BDIAgentFactory(IServiceProvider provider, Map<String,Object> properties)
public BDIAgentFactory(String providerid)
platform - The platform.public IFuture<Void> startService(IInternalAccess component, IResourceIdentifier rid)
startService in interface jadex.kernelbase.IBootstrapFactorypublic IFuture<Void> startService()
startService in interface IInternalServicestartService in class BasicServicepublic IFuture<Void> shutdownService()
shutdownService in interface IInternalServiceshutdownService in class BasicServicelistener - The listener.public IFuture<IModelInfo> loadModel(String model, String[] imports, IResourceIdentifier rid)
loadModel in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public IFuture<Boolean> isLoadable(String model, String[] imports, IResourceIdentifier rid)
isLoadable in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public IFuture<Boolean> isStartable(String model, String[] imports, IResourceIdentifier rid)
isStartable in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public String[] getComponentTypes()
getComponentTypes in interface IComponentFactorypublic IFuture<byte[]> getComponentTypeIcon(String type)
getComponentTypeIcon in interface IComponentFactorypublic IFuture<String> getComponentType(String model, String[] imports, IResourceIdentifier rid)
getComponentType in interface IComponentFactorymodel - The model (e.g. file name).The - imports (if any).public IFuture<Tuple2<IComponentInstance,IComponentAdapter>> createComponentInstance(IComponentDescription desc, IComponentAdapterFactory factory, IModelInfo model, String config, Map<String,Object> arguments, IExternalAccess parent, RequiredServiceBinding[] bindings, ProvidedServiceInfo[] pinfos, boolean copy, boolean realtime, boolean persist, IPersistInfo persistinfo, IIntermediateResultListener<Tuple2<String,Object>> resultlistener, Future<Void> init, LocalServiceRegistry registry)
createComponentInstance in interface IComponentFactorydesc - The component description.factory - The component adapter factory.model - The component model.config - The name of the configuration (or null for default configuration)arguments - The arguments for the component as name/value pairs.parent - The parent component (if any).bindings - Optional bindings to override bindings from model.pinfos - Optional provided service infos to override settings from model.copy - Global flag for parameter copying.realtime - Global flag for real time timeouts.persist - Global flag for persistence support.resultlistener - Optional listener to be notified when the component finishes.init - Future to be notified when init of the component is completed.public Map<String,Object> getProperties(String type)
getProperties in interface IComponentFactorytype - The component type.Copyright © 2015. All Rights Reserved.