public class MicroAgentFactory extends BasicService implements IComponentFactory, jadex.kernelbase.IBootstrapFactory
Modifier and Type | Field and Description |
---|---|
static String |
FILETYPE_MICROAGENT
The micro agent file type.
|
static String[] |
FILETYPES
The supported component types (file extensions).
|
DEFAULT_LOCAL, DEFAULT_REMOTE
EMPTY_SERVICES
Constructor and Description |
---|
MicroAgentFactory(IServiceProvider provider,
Map<String,Object> properties)
Create a new agent factory.
|
MicroAgentFactory(String providerid)
Create a new agent factory for startup.
|
Modifier and Type | Method and Description |
---|---|
IFuture<Tuple2<IComponentInstance,IComponentAdapter>> |
createComponentInstance(IComponentDescription desc,
IComponentAdapterFactory factory,
IModelInfo model,
String config,
Map<String,Object> arguments,
IExternalAccess parent,
RequiredServiceBinding[] binding,
boolean copy,
boolean realtime,
IIntermediateResultListener<Tuple2<String,Object>> resultlistener,
Future<Void> inited)
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. an component).
|
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.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getPropertyMap, getProviderId, getServiceIdentifier, isValid, setPropertyMap
public static final String[] FILETYPES
public static final String FILETYPE_MICROAGENT
public MicroAgentFactory(IServiceProvider provider, Map<String,Object> properties)
public MicroAgentFactory(String providerid)
platform
- The platform.public IFuture<Void> startService(IInternalAccess component, IResourceIdentifier rid)
startService
in interface jadex.kernelbase.IBootstrapFactory
public IFuture<Void> startService()
startService
in interface IInternalService
startService
in class BasicService
public IFuture<Void> shutdownService()
shutdownService
in interface IInternalService
shutdownService
in class BasicService
listener
- The listener.public IFuture<IModelInfo> loadModel(String model, String[] imports, IResourceIdentifier rid)
loadModel
in interface IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public IFuture<Boolean> isLoadable(String model, String[] imports, IResourceIdentifier rid)
isLoadable
in interface IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public IFuture<Boolean> isStartable(String model, String[] imports, IResourceIdentifier rid)
isStartable
in interface IComponentFactory
model
- The model (e.g. file name).The
- imports (if any).public String[] getComponentTypes()
getComponentTypes
in interface IComponentFactory
public IFuture<byte[]> getComponentTypeIcon(String type)
getComponentTypeIcon
in interface IComponentFactory
public IFuture<String> getComponentType(String model, String[] imports, IResourceIdentifier rid)
getComponentType
in interface IComponentFactory
model
- 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[] binding, boolean copy, boolean realtime, IIntermediateResultListener<Tuple2<String,Object>> resultlistener, Future<Void> inited)
createComponentInstance
in interface IComponentFactory
adapter
- The component adapter.model
- The component model.config
- The name of the configuration (or null for default configuration)arguments
- The arguments for the agent as name/value pairs.parent
- The parent component (if any).public Map<String,Object> getProperties(String type)
getProperties
in interface IComponentFactory
type
- The component type.Copyright © 2012. All Rights Reserved.