congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MergeInputPort.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
net.sf.taverna.t2.workflowmodel.MergeInputPort

Best Java code snippets using net.sf.taverna.t2.workflowmodel.MergeInputPort.getName (Showing top 6 results out of 315)

origin: net.sf.taverna.t2/workflowmodel-impl

public static String getUniqueMergeInputPortName(Merge merge, String name,
    int count) {
  String uniqueName = name + count;
  for (MergeInputPort mergeInputPort : merge.getInputPorts()) {
    if (mergeInputPort.getName().equals(uniqueName)) {
      return getUniqueMergeInputPortName(merge, name, ++count);
    }
  }
  return uniqueName;
}
origin: net.sf.taverna.t2.core/workflowmodel-api

public static String getUniqueMergeInputPortName(Merge merge, String name,
    int count) {
  String uniqueName = name + count;
  for (MergeInputPort mergeInputPort : merge.getInputPorts()) {
    if (mergeInputPort.getName().equals(uniqueName)) {
      return getUniqueMergeInputPortName(merge, name, ++count);
    }
  }
  return uniqueName;
}
origin: net.sf.taverna.t2.workbench/contextual-views-impl

  @Override
  public void refreshView() {
    
    mergeView = new JPanel();
    mergeView.setLayout(new BoxLayout(mergeView, BoxLayout.PAGE_AXIS));
    mergeView.setBorder(new EmptyBorder(5, 5, 5, 5));
    mergeView.add(new JLabel("Merge: " + merge.getLocalName()));
    mergeView.add(Box.createRigidArea(new Dimension(0,5)));
    mergeView.add(new JLabel("Inputs: "));
    for (MergeInputPort mergeInputPort : merge.getInputPorts()) {
      mergeView.add(new JLabel(mergeInputPort.getName()));
    }
    mergeView.add(Box.createRigidArea(new Dimension(0,5)));
    mergeView.add(new JLabel("Outputs: "));
    mergeView.add(new JLabel(merge.getOutputPort().getName()));
  }
}
origin: net.sf.taverna.t2.ui-activities/component-activity-ui

private void transferMerge(List<Edit<?>> editList,
    Map<Object, Object> oldNewMapping, Dataflow nestedDataflow,
    Merge merge) throws EditException {
  editList.add(edits.getRemoveMergeEdit(currentDataflow, merge));
  Merge newMerge = edits.createMerge(nestedDataflow);
  edits.getAddMergeEdit(nestedDataflow, newMerge).doEdit();
  oldNewMapping.put(merge, newMerge);
  for (MergeInputPort mip : merge.getInputPorts()) {
    MergeInputPort newMip = edits.createMergeInputPort(newMerge,
        mip.getName(), mip.getDepth());
    edits.getAddMergeInputPortEdit(newMerge, newMip).doEdit();
    oldNewMapping.put(mip, newMip);
  }
  oldNewMapping.put(merge.getOutputPort(), newMerge.getOutputPort());
}
origin: net.sf.taverna.t2.ui-components/graph-model

portNode.setId("i" + inputPort.getName());
portNode.setLabel(inputPort.getName());
ports.put(inputPort, portNode);
node.addSinkNode(portNode);
origin: net.sf.taverna.t2/maelstrom-impl

assertEquals(1,merge.getInputPorts().size());
assertTrue(merge.getInputPorts().get(0) instanceof MergeInputPort);
assertEquals("source_port_tomerge",merge.getInputPorts().get(0).getName());
assertSame(sourcePort,merge.getInputPorts().get(0).getIncomingLink().getSource());
assertEquals(2,merge.getInputPorts().size());
assertTrue(merge.getInputPorts().get(1) instanceof MergeInputPort);
assertEquals("source_port2_tomerge",merge.getInputPorts().get(1).getName());
assertSame(sourcePort2,merge.getInputPorts().get(1).getIncomingLink().getSource());
net.sf.taverna.t2.workflowmodelMergeInputPortgetName

Popular methods of MergeInputPort

  • getIncomingLink
  • getMerge
  • getDepth

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JPanel (javax.swing)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now