Examples of OutputPort


Examples of eu.scape_project.planning.services.taverna.generator.model.OutputPort

    /**
     * Adds a target port.
     */
    public void addTargetPort() {
        OutputPort outputPort = new OutputPort(TARGET_PORT_NAME,
            "<> <http://purl.org/DP/components#provides> <http://purl.org/DP/components#TargetObject> .");
        workflow.addOutputPort(outputPort);
    }
View Full Code Here

Examples of eu.scape_project.planning.services.taverna.generator.model.OutputPort

    public void addMeasurePort(String measure) {
        String portName = createMeasurePortName(measure);
        if (portName == null) {
            throw new IllegalArgumentException("The provided measure " + measure + " is not valid");
        }
        OutputPort outputPort = new OutputPort(portName, "<> <http://purl.org/DP/components#provides> <"
            + measure + "> .");
        workflow.addOutputPort(outputPort);
    }
View Full Code Here

Examples of eu.scape_project.planning.services.taverna.generator.model.OutputPort

        // Output ports
        List<Port> outputPorts = workflowDescription.getOutputPorts();
        for (Port p : outputPorts) {
            if (ComponentConstants.VALUE_TARGET_OBJECT.equals(p.getValue())) {
                migrationTargetPortName = p.getName();
                migration.addOutputPort(new OutputPort(migrationTargetPortName));
                workflow.addDatalink(new Datalink(migration, migrationTargetPortName, workflow, TARGET_PORT_NAME));
            }
        }
    }
View Full Code Here

Examples of eu.scape_project.planning.services.taverna.generator.model.OutputPort

                if (p.getRelatedObject() == null || p.getRelatedObject().equals(relatedObject.toString())) {
                    String measurePortName = createMeasurePortName(p.getValue());
                    if (!workflow.hasSink(measurePortName)) {
                        addMeasurePort(p.getValue());
                    }
                    qa.addOutputPort(new OutputPort(p.getName()));
                    workflow.addDatalink(new Datalink(qa, p.getName(), workflow, measurePortName));
                }
            }
        }
    }
View Full Code Here

Examples of eu.scape_project.planning.services.taverna.generator.model.OutputPort

            if (measures.contains(p.getValue())) {
                String measurePortName = createMeasurePortName(p.getValue());
                if (!workflow.hasSink(measurePortName)) {
                    addMeasurePort(p.getValue());
                }
                cc.addOutputPort(new OutputPort(p.getName()));
                workflow.addDatalink(new Datalink(cc, p.getName(), workflow, measurePortName));
            }
        }
    }
View Full Code Here

Examples of eu.scape_project.planning.services.taverna.generator.model.OutputPort

     *            the constant value
     */
    public TextConstant(String name, String value) {
        super(name);
        this.value = value;
        super.addOutputPort(new OutputPort("value"));
    }
View Full Code Here

Examples of javaflow.components.api.OutputPort

public class OutputPortRoundRobinIteratorTest {

    @Test
    public void t() {
        OutputPorts ports = mock(OutputPorts.class);
        OutputPort port1 = mock(OutputPort.class);
        OutputPort port2 = mock(OutputPort.class);
        Packet packet1 = mock(Packet.class);
        Packet packet2 = mock(Packet.class);
        Packet packet3 = mock(Packet.class);
        Packet packet4 = mock(Packet.class);
View Full Code Here

Examples of net.kuujo.vertigo.io.port.OutputPort

    return ports.values();
  }

  @Override
  public OutputPort port(String name) {
    OutputPort port = ports.get(name);
    if (port == null) {
      log.debug(String.format("%s - Lazily creating out port: %s", this, name));

      // Attempt to search for the port in the existing context. If the
      // port isn't an explicitly configured port then lazily create
      // and open the port. The lazy port will be empty.
      OutputPortContext portContext = context.port(name);
      if (portContext == null) {
        portContext = DefaultOutputPortContext.Builder.newBuilder()
            .setAddress(UUID.randomUUID().toString())
            .setName(name)
            .build();
        DefaultOutputContext.Builder.newBuilder((DefaultOutputContext) context).addPort(portContext);
      }
      port = new DefaultOutputPort(vertx, context.port(name));
      if (started) {
        port.open();
      }
      ports.put(name, port);
    }
    return port;
  }
View Full Code Here

Examples of net.kuujo.vertigo.io.port.OutputPort

          for (OutputPortContext output : context.ports()) {
            if (ports.containsKey(output.name())) {
              ((DefaultOutputPort) ports.get(output.name())).open(startCounter);
            } else {
              final OutputPort port = new DefaultOutputPort(vertx, output);
              log.debug(String.format("%s - Opening out port: %s", DefaultOutputCollector.this, output));
              port.open(new Handler<AsyncResult<Void>>() {
                @Override
                public void handle(AsyncResult<Void> result) {
                  if (result.failed()) {
                    log.error(String.format("%s - Failed to open out port: %s", DefaultOutputCollector.this, port));
                    startCounter.fail(result.cause());
                  } else {
                    log.info(String.format("%s - Opened out port: %s", DefaultOutputCollector.this, port));
                    ports.put(port.name(), port);
                    startCounter.succeed();
                  }
                }
              });
            }
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.