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) |
<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, shutdown
public SubcomponentsComponentFeature(IInternalAccess component, ComponentCreationInfo cinfo)
public jadex.commons.future.IFuture<java.lang.Void> init()
init
in interface IComponentFeature
init
in class AbstractComponentFeature
public java.lang.String getComponentFilename(java.lang.String ctype)
getComponentFilename
in interface ISubcomponentsFeature
ctype
- The component type.public java.lang.String getLocalType()
getLocalType
in interface ISubcomponentsFeature
protected jadex.commons.future.IFuture<java.util.List<IComponentIdentifier>> createComponents(ComponentInstanceInfo[] components)
public jadex.commons.future.IFuture<IComponentIdentifier> createChild(ComponentInstanceInfo component)
createChild
in interface ISubcomponentsFeature
component
- 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 IInternalSubcomponentsFeature
public jadex.commons.future.IFuture<java.lang.Void> componentRemoved(IComponentDescription desc)
componentRemoved
in interface IInternalSubcomponentsFeature
public <T> jadex.commons.future.IResultListener<T> createResultListener(jadex.commons.future.IResultListener<T> listener)
protected boolean isExternalThread()