public class SubcomponentsComponentFeature extends AbstractComponentFeature implements ISubcomponentsFeature, IInternalSubcomponentsFeature
cinfo, component, guesser| Constructor and Description |
|---|
SubcomponentsComponentFeature(IInternalAccess component,
ComponentCreationInfo cinfo)
Create the feature.
|
| Modifier and Type | Method and Description |
|---|---|
jadex.commons.future.IFuture<java.lang.Void> |
componentCreated(IComponentDescription desc)
Called, when a subcomponent has been created.
|
jadex.commons.future.IFuture<java.lang.Void> |
componentRemoved(IComponentDescription desc)
Called, when a subcomponent has been removed.
|
jadex.commons.future.IFuture<IComponentIdentifier> |
createChild(ComponentInstanceInfo component)
Create a subcomponent.
|
protected void |
createComponent(ComponentInstanceInfo[] components,
IComponentManagementService cms,
IModelInfo model,
int i,
jadex.commons.future.Future<java.lang.Void> fut,
java.util.List<IComponentIdentifier> cids)
Create subcomponents.
|
protected jadex.commons.future.IFuture<java.util.List<IComponentIdentifier>> |
createComponents(ComponentInstanceInfo[] components)
Create the subcomponents.
|
<T> jadex.commons.future.IResultListener<T> |
createResultListener(jadex.commons.future.IResultListener<T> listener)
Create a result listener that is executed on the
component thread.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getArguments(ComponentInstanceInfo component,
IModelInfo model)
Get the arguments.
|
java.lang.String |
getComponentFilename(java.lang.String ctype)
Get the file name of a component type.
|
protected java.lang.String |
getFilename(ComponentInstanceInfo component,
IModelInfo model)
Get the number of components to start.
|
java.lang.String |
getLocalType()
Get the local type name of this component as defined in the parent.
|
protected java.lang.String |
getName(ComponentInstanceInfo component,
IModelInfo model,
int cnt)
Get the name of components to start.
|
protected int |
getNumber(ComponentInstanceInfo component,
IModelInfo model)
Get the number of components to start.
|
jadex.commons.future.IFuture<java.lang.Void> |
init()
Initialize the feature.
|
protected boolean |
isExternalThread() |
body, getComponent, getExternalFacade, getExternalFacadeType, getParameterGuesser, getValueFetcher, kill, shutdownpublic SubcomponentsComponentFeature(IInternalAccess component, ComponentCreationInfo cinfo)
public jadex.commons.future.IFuture<java.lang.Void> init()
init in interface IComponentFeatureinit in class AbstractComponentFeaturepublic java.lang.String getComponentFilename(java.lang.String ctype)
getComponentFilename in interface ISubcomponentsFeaturectype - The component type.public java.lang.String getLocalType()
getLocalType in interface ISubcomponentsFeatureprotected jadex.commons.future.IFuture<java.util.List<IComponentIdentifier>> createComponents(ComponentInstanceInfo[] components)
public jadex.commons.future.IFuture<IComponentIdentifier> createChild(ComponentInstanceInfo component)
createChild in interface ISubcomponentsFeaturecomponent - The instance info.protected void createComponent(ComponentInstanceInfo[] components, IComponentManagementService cms, IModelInfo model, int i, jadex.commons.future.Future<java.lang.Void> fut, java.util.List<IComponentIdentifier> cids)
protected java.lang.String getFilename(ComponentInstanceInfo component, IModelInfo model)
protected int getNumber(ComponentInstanceInfo component, IModelInfo model)
protected java.lang.String getName(ComponentInstanceInfo component, IModelInfo model, int cnt)
protected java.util.Map<java.lang.String,java.lang.Object> getArguments(ComponentInstanceInfo component, IModelInfo model)
public jadex.commons.future.IFuture<java.lang.Void> componentCreated(IComponentDescription desc)
componentCreated in interface IInternalSubcomponentsFeaturepublic jadex.commons.future.IFuture<java.lang.Void> componentRemoved(IComponentDescription desc)
componentRemoved in interface IInternalSubcomponentsFeaturepublic <T> jadex.commons.future.IResultListener<T> createResultListener(jadex.commons.future.IResultListener<T> listener)
protected boolean isExternalThread()