Examples of Plug


Examples of fbench.graph.Plug

                .getElementsByTagName(adptype);
        if (adplist.getLength() < 1)
            return;
        NodeList adps = ((Element) adplist.item(0)).getChildNodes();
        for (int i = 0; i < adps.getLength(); i++) {
            GraphElement ge = adptype.equals("Plugs") ? new Plug()
                    : new Socket();
            ge.setElement((Element) adps.item(i));
            if (ge != null)
                graph.add(ge);
        }
View Full Code Here

Examples of net.sf.pipet.api.Plug

  public Plug getSource()
  {
    if (srcmod == null || srcselector.getSelectedItem() == null)
      return null;
    else
      return new Plug(srcmod, (String)srcselector.getSelectedItem());
  }
View Full Code Here

Examples of net.sf.pipet.api.Plug

  public Plug getDest()
  {
    if (destmod == null || destselector.getSelectedItem() == null)
      return null;
    else
      return new Plug(destmod, (String)destselector.getSelectedItem());
  }
View Full Code Here

Examples of net.sf.pipet.api.Plug

   
    Collection<Plug> invalid_source_plugs = new Vector<Plug>();
   
    for (Map.Entry<Plug,Collection<Plug>> e : connectors.entrySet())
    {
      Plug source = e.getKey();
      if (!source.isValidSource(this))
      {
        if (log != null)
          log.warn(String.format("Removing connector from unresolved output port: %s/%s", source.getModule().getDescription(), source.getPort()));
        invalid_source_plugs.add(source);
      }
      else
      {
        for (Iterator<Plug> it = e.getValue().iterator() ; it.hasNext() ; )
        {
          Plug target = it.next();
          if (!target.isValidTarget(this))
          {
            if (log != null)
              log.warn(String.format("Removing connector from unresolved input port: %s/%s", target.getModule().getDescription(), target.getPort()));
            it.remove();
            is_changed = true;
          }
        }
      }
View Full Code Here

Examples of net.sf.pipet.api.Plug

   
    for (Map.Entry<String,Collection<Plug>> e : getInputPipes().entrySet())
    {
      for (Iterator<Plug> it = e.getValue().iterator() ; it.hasNext() ; )
      {
        Plug plug = it.next();
        if (!plug.isValidTarget(this))
        {
          if (log != null)
            log.warn(String.format("Removing unresolved import port: %s/%s", plug.getModule().getDescription(), plug.getPort()));
          removePipe(input_pipes, e.getKey(), plug);
          is_changed = true;
        }
      }
    }
View Full Code Here

Examples of net.sf.pipet.api.Plug

   
    for (Map.Entry<String,Collection<Plug>> e : getOutputPipes().entrySet())
    {
      for (Iterator<Plug> it = e.getValue().iterator() ; it.hasNext() ; )
      {
        Plug plug = it.next();
        if (!plug.isValidSource(this))
        {
          if (log != null)
            log.warn(String.format("Removing unresolved export port: %s/%s", plug.getModule().getDescription(), plug.getPort()));
          removePipe(output_pipes, e.getKey(), plug);
          is_changed = true;
        }
      }
    }
View Full Code Here

Examples of net.sf.pipet.api.Plug

    for (PipelineModule consumer : mods)
    {
      for (String port : consumer.getInputPipeTypes().keySet())
      {
        for (PipelineModule producer : producers.get(port))
          addConnector(connectors, new Plug(producer, port), new Plug(consumer, port));
      }
    }

    return Collections.unmodifiableMap(connectors);
  }
View Full Code Here

Examples of net.sf.pipet.api.Plug

   
    Map<String,Collection<Plug>> pipes = new HashMap<String,Collection<Plug>>();
    for (PipelineModule mod : mods)
    {
      for (String port : mod.getInputPipeTypes().keySet())
        addPipe(pipes, port, Collections.singleton(new Plug(mod, port)));
    }
   
    return Collections.unmodifiableMap(pipes);
  }
View Full Code Here

Examples of net.sf.pipet.api.Plug

   
    Map<String,Collection<Plug>> pipes = new HashMap<String,Collection<Plug>>();
    for (PipelineModule mod : mods)
    {
      for (String port : mod.getOutputPipeTypes().keySet())
        addPipe(pipes, port, Collections.singleton(new Plug(mod, port)));
    }
   
    return Collections.unmodifiableMap(pipes);
  }
View Full Code Here

Examples of net.sf.pipet.api.Plug

    return new AbortablePipeline(job);
  }
 
  private Plug translate(Map<PipelineModule,PipelineModule> modmap, Plug in)
  {
    return new Plug(modmap.get(in.getModule()), in.getPort());
  }
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.