Package net.sf.pipet.api

Examples of net.sf.pipet.api.Pipeline


    tabSelectionChanged();
  }
 
  private void tabSelectionChanged()
  {
    Pipeline pipeline = getSelectedPipeline();
   
    it_pipeline_clone.setEnabled(pipeline!=null);
    it_pipeline_run.setEnabled(pipeline!=null);
    it_pipeline_del.setEnabled(pipeline!=null);
    it_pipeline_autoconnect.setEnabled(pipeline!=null);
    it_pipeline_autoconnect.setState(pipeline!=null && pipeline.useAutomaticConnections());
    it_view_graph.setEnabled(pipeline!=null);
    it_view_table.setEnabled(pipeline!=null);
  }
View Full Code Here


  {
    if (!cmd.hasOption(OPT_PIPELINE[0]))
      return null;
   
    String pipeline_name = cmd.getOptionValue(OPT_PIPELINE[0]);
    Pipeline p = getConfiguration().getPipeline(pipeline_name);
    if (p == null)
      throw new PipetError("No such pipeline: "+pipeline_name);
   
    return new EmbeddedPipeline(cfg, p);
  }
View Full Code Here

    return pipelines.get(name);
  }
 
  public Pipeline newPipeline(String name)
  {
    Pipeline p = new PipelineImpl(name, false);
    addAvailablePipeline(p);
    changed();
   
    return p;
  }
View Full Code Here

  @Override
  public ModuleInterface getModuleInterface(String uri, Configuration cfg)
    throws ResourceException
  {
    Pipeline p = cfg.getPipeline(uri);
    if (p == null)
      throw new ResourceNotFoundException(String.format("Pipeline not found: %s", uri));
   
    return new EmbeddedPipeline(cfg, p);
  }
View Full Code Here

      throw new InvalidConfigurationException("Pipeline has no name.");

    String ac = getAttribute(node, "auto-connect");
    boolean autoconnect = ac==null ? true : Boolean.parseBoolean(ac);
   
    Pipeline p = new PipelineImpl(name, autoconnect);
    Map<String,PipelineModule> mods = new HashMap<String,PipelineModule>();
   
    NodeList modnodes = evaluateXPath("module", node);
    if (modnodes != null)
    {
View Full Code Here

TOP

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

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.