Tabnine Logo
MergeOutputPort.getMerge
Code IndexAdd Tabnine 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)

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

    • Making http requests using okhttp
    • requestLocationUpdates (LocationManager)
    • getContentResolver (Context)
    • scheduleAtFixedRate (Timer)
    • ConnectException (java.net)
      A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
    • URLConnection (java.net)
      A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
    • Timer (java.util)
      Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
    • Callable (java.util.concurrent)
      A task that returns a result and may throw an exception. Implementors define a single method with no
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • Best IntelliJ plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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