Package net.sf.pipet.api

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


      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

    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

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

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

 
  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

        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

Related Classes of net.sf.pipet.api.ModuleInterface

Copyright © 2018 www.massapicom. 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.