public class BDIAgentFactory
extends jadex.bridge.service.BasicService
implements jadex.bridge.service.types.factory.IComponentFactory, jadex.kernelbase.IBootstrapFactory
Modifier and Type | Field and Description |
---|---|
static java.util.Collection<jadex.bridge.component.IComponentFeatureFactory> |
BDI_FEATURES
The specific component features for micro agents.
|
protected java.util.Collection<jadex.bridge.component.IComponentFeatureFactory> |
features
The standard + micro component features.
|
static java.lang.String |
FILETYPE_BDIAGENT
The bdi agent file type.
|
protected static jadex.commons.LazyResource |
ICON
The image icon.
|
protected jadex.bridge.service.types.library.ILibraryService |
libservice
The library service.
|
protected jadex.bridge.service.types.library.ILibraryServiceListener |
libservicelistener
The library service listener
|
protected BDIModelLoader |
loader
The application model loader.
|
protected jadex.bridge.IInternalAccess |
provider
The platform.
|
Constructor and Description |
---|
BDIAgentFactory(jadex.bridge.IInternalAccess provider)
Create a new agent factory.
|
BDIAgentFactory(jadex.bridge.IInternalAccess provider,
java.util.Map<java.lang.String,java.lang.Object> properties)
Create a new agent factory.
|
BDIAgentFactory(java.lang.String providerid)
Create a new agent factory for startup.
|
Modifier and Type | Method and Description |
---|---|
static void |
addExcludedMethods(java.util.Map props,
java.lang.String[] excludes)
Add excluded methods.
|
jadex.commons.future.IFuture<java.util.Collection<jadex.bridge.component.IComponentFeatureFactory>> |
getComponentFeatures(jadex.bridge.modelinfo.IModelInfo model)
Get the component features for a model.
|
jadex.commons.future.IFuture<java.lang.String> |
getComponentType(java.lang.String model,
java.lang.String[] imports,
jadex.bridge.IResourceIdentifier rid)
Get the component type of a model.
|
jadex.commons.future.IFuture<byte[]> |
getComponentTypeIcon(java.lang.String type)
Get a default icon for a file type.
|
java.lang.String[] |
getComponentTypes()
Get the names of ADF file types supported by this factory.
|
protected java.lang.Class |
getMicroAgentClass(java.lang.String clname,
java.lang.String[] imports,
java.lang.ClassLoader classloader)
Get the mirco agent class.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties(java.lang.String type)
Get the properties.
|
jadex.commons.future.IFuture<java.lang.Boolean> |
isLoadable(java.lang.String model,
java.lang.String[] imports,
jadex.bridge.IResourceIdentifier rid)
Test if a model can be loaded by the factory.
|
jadex.commons.future.IFuture<java.lang.Boolean> |
isStartable(java.lang.String model,
java.lang.String[] imports,
jadex.bridge.IResourceIdentifier rid)
Test if a model is startable (e.g.
|
jadex.commons.future.IFuture<jadex.bridge.modelinfo.IModelInfo> |
loadModel(java.lang.String model,
java.lang.String[] imports,
jadex.bridge.IResourceIdentifier rid)
Load a model.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdownService()
Shutdown the service.
|
jadex.commons.future.IFuture<java.lang.Void> |
startService()
Start the service.
|
jadex.commons.future.IFuture<java.lang.Void> |
startService(jadex.bridge.IInternalAccess component,
jadex.bridge.IResourceIdentifier rid)
Start the service.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInterfaceType, getInternalAccess, getMethodTimeout, getPropertyMap, getProviderId, getServiceIdentifier, hashCode, initNFProperties, isValid, setComponentAccess, setPropertyMap, toString
public static final java.lang.String FILETYPE_BDIAGENT
protected static final jadex.commons.LazyResource ICON
public static final java.util.Collection<jadex.bridge.component.IComponentFeatureFactory> BDI_FEATURES
protected BDIModelLoader loader
protected jadex.bridge.IInternalAccess provider
protected jadex.bridge.service.types.library.ILibraryService libservice
protected jadex.bridge.service.types.library.ILibraryServiceListener libservicelistener
protected java.util.Collection<jadex.bridge.component.IComponentFeatureFactory> features
public BDIAgentFactory(jadex.bridge.IInternalAccess provider)
public BDIAgentFactory(jadex.bridge.IInternalAccess provider, java.util.Map<java.lang.String,java.lang.Object> properties)
public BDIAgentFactory(java.lang.String providerid)
platform
- The platform.public jadex.commons.future.IFuture<java.lang.Void> startService(jadex.bridge.IInternalAccess component, jadex.bridge.IResourceIdentifier rid)
startService
in interface jadex.kernelbase.IBootstrapFactory
public jadex.commons.future.IFuture<java.lang.Void> startService()
startService
in interface jadex.bridge.service.IInternalService
startService
in class jadex.bridge.service.BasicService
public jadex.commons.future.IFuture<java.lang.Void> shutdownService()
shutdownService
in interface jadex.bridge.service.IInternalService
shutdownService
in class jadex.bridge.service.BasicService
listener
- The listener.public jadex.commons.future.IFuture<java.util.Collection<jadex.bridge.component.IComponentFeatureFactory>> getComponentFeatures(jadex.bridge.modelinfo.IModelInfo model)
getComponentFeatures
in interface jadex.bridge.service.types.factory.IComponentFactory
model
- The component model.public jadex.commons.future.IFuture<jadex.bridge.modelinfo.IModelInfo> loadModel(java.lang.String model, java.lang.String[] imports, jadex.bridge.IResourceIdentifier rid)
loadModel
in interface jadex.bridge.service.types.factory.IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public jadex.commons.future.IFuture<java.lang.Boolean> isLoadable(java.lang.String model, java.lang.String[] imports, jadex.bridge.IResourceIdentifier rid)
isLoadable
in interface jadex.bridge.service.types.factory.IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public jadex.commons.future.IFuture<java.lang.Boolean> isStartable(java.lang.String model, java.lang.String[] imports, jadex.bridge.IResourceIdentifier rid)
isStartable
in interface jadex.bridge.service.types.factory.IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public java.lang.String[] getComponentTypes()
getComponentTypes
in interface jadex.bridge.service.types.factory.IComponentFactory
public jadex.commons.future.IFuture<byte[]> getComponentTypeIcon(java.lang.String type)
getComponentTypeIcon
in interface jadex.bridge.service.types.factory.IComponentFactory
public jadex.commons.future.IFuture<java.lang.String> getComponentType(java.lang.String model, java.lang.String[] imports, jadex.bridge.IResourceIdentifier rid)
getComponentType
in interface jadex.bridge.service.types.factory.IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public java.util.Map<java.lang.String,java.lang.Object> getProperties(java.lang.String type)
getProperties
in interface jadex.bridge.service.types.factory.IComponentFactory
type
- The component type.protected java.lang.Class getMicroAgentClass(java.lang.String clname, java.lang.String[] imports, java.lang.ClassLoader classloader)
public static void addExcludedMethods(java.util.Map props, java.lang.String[] excludes)