Codota Logo
MergeOutputPort.getMerge
Code IndexAdd Codota to your IDE (free)

How to use
getMerge
method
in
net.sf.taverna.t2.workflowmodel.MergeOutputPort

Best Java code snippets using net.sf.taverna.t2.workflowmodel.MergeOutputPort.getMerge (Showing top 12 results out of 315)

  • Common ways to obtain MergeOutputPort
private void myMethod () {
MergeOutputPort m =
  • Codota IconEventHandlingInputPort eventHandlingInputPort;(MergeOutputPort) eventHandlingInputPort.getIncomingLink().getSource()
  • Smart code suggestions by Codota
}
origin: net.sf.taverna.t2.core/workflowmodel-api

Merge merge = ((MergeOutputPort) source).getMerge();
queue.add(merge);
origin: net.sf.taverna.t2.ui-activities/component-activity-ui

private void considerNearestUpstream(TokenProcessingEntity investigate) {
  if (investigate instanceof Processor)
    for (Condition condition : ((Processor) investigate)
        .getPreconditionList())
      considerInclusion(condition.getControl());
  for (EventHandlingInputPort inputPort : investigate.getInputPorts()) {
    Datalink incomingLink = inputPort.getIncomingLink();
    if (incomingLink == null)
      continue;
    EventForwardingOutputPort source = incomingLink.getSource();
    if (source instanceof ProcessorOutputPort)
      considerInclusion(((ProcessorOutputPort) source).getProcessor());
    else if (source instanceof MergeOutputPort)
      considerInclusion(((MergeOutputPort) source).getMerge());
    else {
      // Ignore
    }
  }
}
origin: net.sf.taverna.t2/workflowmodel-impl

int counter = 0; // counter for merge input port names
if (incomingLink.getSource() instanceof MergeOutputPort) {
  merge = ((MergeOutputPort) incomingLink.getSource()).getMerge();
} else {
  merge = edits.createMerge(dataflow);
origin: net.sf.taverna.t2.core/workflowmodel-api

int counter = 0; // counter for merge input port names
if (incomingLink.getSource() instanceof MergeOutputPort) {
  merge = ((MergeOutputPort) incomingLink.getSource()).getMerge();
} else {
  merge = edits.createMerge(dataflow);
origin: net.sf.taverna.t2/compatibility-impl

private void addMergedDatalink(EventForwardingOutputPort sourcePort,
    EventHandlingInputPort sinkPort, Dataflow targetDataflow)
    throws EditException, WorkflowTranslationException {
  Merge merge = null;
  if (sinkPort.getIncomingLink() == null) {
    merge = edits.createMerge(targetDataflow);
    // Add to the dataflow
    edits.getAddMergeEdit(targetDataflow, merge).doEdit();
  } else {
    if (sinkPort.getIncomingLink().getSource() instanceof MergeOutputPort) {
      merge = ((MergeOutputPort) sinkPort.getIncomingLink()
          .getSource()).getMerge();
    } else {
      // FIXME: what to do when a Taverna 1 workflow has 2 inputs to a
      // single port that isn't a merge?? For now throw an exception
      throw new WorkflowTranslationException(
          "Unable to translate a workflow that has multiple un-merged inputs to a single port.");
    }
  }
  edits.getConnectMergedDatalinkEdit(merge, sourcePort, sinkPort)
      .doEdit();
}
origin: net.sf.taverna.t2.core/workflowmodel-impl

if (sinkPort.getIncomingLink().getSource() instanceof MergeOutputPort) {
  merge = ((MergeOutputPort) sinkPort.getIncomingLink()
      .getSource()).getMerge();
} else {
  throw new DeserializationException(
origin: net.sf.taverna.t2/workflowmodel-impl

if (sinkPort.getIncomingLink().getSource() instanceof MergeOutputPort) {
  merge = ((MergeOutputPort) sinkPort.getIncomingLink()
      .getSource()).getMerge();
} else {
  throw new DeserializationException(
origin: net.sf.taverna.t2/cyclone-impl

private void addMergedDatalink(EventForwardingOutputPort sourcePort,
    EventHandlingInputPort sinkPort, Dataflow targetFlow) throws EditException,
    WorkflowTranslationException {
  Merge merge = null;
  if (sinkPort.getIncomingLink() == null) {
    merge = edits.createMerge(sinkPort);
    // Add to the dataflow
    edits.getAddMergeEdit(targetFlow, merge).doEdit();
  } else {
    if (sinkPort.getIncomingLink().getSource() instanceof MergeOutputPort) {
      merge = ((MergeOutputPort) sinkPort.getIncomingLink()
          .getSource()).getMerge();
    } else {
      // FIXME: what to do when a Taverna 1 workflow has 2 inputs to a
      // single port that isn't a merge?? For now throw an exception
      throw new WorkflowTranslationException(
          "Unable to translate a workflow that has multiple un-merged inputs to a single port.");
    }
  }
  edits.getConnectMergedDatalinkEdit(merge, sourcePort, sinkPort)
      .doEdit();
}
origin: net.sf.taverna.t2/maelstrom-impl

assertEquals(0,merge.getOutputPort().getOutgoingLinks().size());
assertSame(merge,((MergeOutputPort)merge.getOutputPort()).getMerge());
origin: net.sf.taverna.t2/cyclone-impl

assertSame(merge, mergeOutput.getMerge());
origin: net.sf.taverna.t2.compatibility/compatibility-impl

assertSame(merge, mergeOutput.getMerge());
origin: net.sf.taverna.t2/compatibility-impl

assertSame(merge, mergeOutput.getMerge());
net.sf.taverna.t2.workflowmodelMergeOutputPortgetMerge

Popular methods of MergeOutputPort

    Popular in Java

    • Reading from database using SQL prepared statement
    • setScale (BigDecimal)
    • onRequestPermissionsResult (Fragment)
    • scheduleAtFixedRate (Timer)
      Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
    • List (java.util)
      A List is a collection which maintains an ordering for its elements. Every element in the List has a
    • JOptionPane (javax.swing)
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • Project (org.apache.tools.ant)
      Central representation of an Ant project. This class defines an Ant project with all of its targets,
    • DateTimeFormat (org.joda.time.format)
      Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
    • Option (scala)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now