Examples of ModuleInterface


Examples of net.sf.pipet.api.ModuleInterface

  {
    int of_before = test_open_files ? getOpenFiles(messenger) : 0;
   
    SimulationModuleData data = new SimulationModuleData(atts, input, output, messenger);

    ModuleInterface modif = ModuleLoader.loadModuleInterface(mod_uri, cfg);
    ModuleDefinition mod = ModuleDefinition.create(cfg.getRootModule(), mod_uri, modif, null, null);
   
    ModuleInstance instance = mod.getInterface().createInstance(data, messenger);
    data.close(instance.run());
View Full Code Here

Examples of net.sf.pipet.api.ModuleInterface

      if (modspec == null)
        return null;

      String uri = String.format("%s:%s", selected.name, modspec);
     
      ModuleInterface iface = selected.plugin.getModuleInterface(modspec, cfg);
      return ModuleDefinition.create(cfg.getRootModule(), uri, iface, null, null);
    }
    catch (ResourceException e)
    {
      reporter.warn(e.toString());
View Full Code Here

Examples of net.sf.pipet.api.ModuleInterface

    return createModuleDefinition(uri, DEFAULT_CONFIGURATION);
  }

  public static ModuleDefinition createModuleDefinition(String uri, Configuration cfg) throws InvalidConfigurationException, ResourceException
  {
    ModuleInterface iface = createModuleInterface(uri, cfg);
    return createModuleDefinition(iface, cfg);
  }
View Full Code Here

Examples of net.sf.pipet.api.ModuleInterface

    }
  }
 
  private ModuleInterface getModuleInterface() throws PipetError
  {
    ModuleInterface iface = getPipelineModule();
    if (iface != null)
      return iface;

    if (cmd.getArgs().length == 0)
      return null;
View Full Code Here

Examples of net.sf.pipet.api.ModuleInterface

 
  public ModuleDefinition getModule() throws PipetError
  {
    if (mod == null)
    {
      ModuleInterface iface = getModuleInterface();
      if (iface != null)
        mod = ModuleDefinition.create(getConfiguration().getRootModule(), null, iface, null, null);
    }
   
    return mod;
View Full Code Here

Examples of net.sf.pipet.api.ModuleInterface

        throw new InvalidConfigurationException(String.format("Module %s: Module interface specification is missing.", modid));
    }
    else
      parent = cfg.getRootModule();
   
    ModuleInterface iface = null;
    if (url!=null)
      iface = new ModuleInterfaceFrontend(cfg, url);
   
    Map<String,UntypedValue> atts = extractAttributes(modnode);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.