{
Vector<ModuleDefinition> runmods = new Vector<ModuleDefinition>();
for (ModuleDefinition pipelinemod : pipeline.getModules())
{
reporter.debug("setup module: "+pipelinemod.getTitle());
ModuleDefinition mod = ModuleDefinition.create(pipelinemod);
if (data_access != null)
addAttributes(mod, data_access.getAttributes());
if (parameters != null)
addAttributes(mod, parameters);
mod.setValue(ModuleInterface.ATT_PIPELINE_NAME, new UntypedValue(pipeline.getName()));
try
{
ModuleConfigurator modconf = mod.getInterface().getRuntimeConfigurator(interface_type);
if (modconf == null || modconf.configure(mod, new Vector<ModuleDefinition>(pipeline.getModules()), reporter))
runmods.add(mod);
else
{
reporter.debug(String.format("Configuration of %s failed.", mod.toString()));
return false;
}
}
catch (ResourceException e)
{
reporter.debug(String.format("Resource not loaded: %s.", mod.toString()));
return false;
}
}
try