Package edu.indiana.extreme.xbaya.graph

Examples of edu.indiana.extreme.xbaya.graph.Graph.addEdge()


        // Connect ports
        graph.addEdge(amount.getOutputPort(0), approver.getInputPort(0));
        graph.addEdge(amount.getOutputPort(0), ifNode.getInputPort(0));
        graph.addEdge(ifNode.getControlOutPorts().get(0), approver
                .getControlInPort());
        graph.addEdge(ifNode.getControlOutPorts().get(1), constYes
                .getControlInPort());
        graph.addEdge(approver.getOutputPort(0), endif.getInputPort(0));
        graph.addEdge(constYes.getOutputPort(0), endif.getInputPort(1));
        graph.addEdge(endif.getOutputPort(0), output.getInputPort(0));
View Full Code Here


        graph.addEdge(amount.getOutputPort(0), ifNode.getInputPort(0));
        graph.addEdge(ifNode.getControlOutPorts().get(0), approver
                .getControlInPort());
        graph.addEdge(ifNode.getControlOutPorts().get(1), constYes
                .getControlInPort());
        graph.addEdge(approver.getOutputPort(0), endif.getInputPort(0));
        graph.addEdge(constYes.getOutputPort(0), endif.getInputPort(1));
        graph.addEdge(endif.getOutputPort(0), output.getInputPort(0));

        // Set the default values
        // This needs to be after connection.
View Full Code Here

        graph.addEdge(ifNode.getControlOutPorts().get(0), approver
                .getControlInPort());
        graph.addEdge(ifNode.getControlOutPorts().get(1), constYes
                .getControlInPort());
        graph.addEdge(approver.getOutputPort(0), endif.getInputPort(0));
        graph.addEdge(constYes.getOutputPort(0), endif.getInputPort(1));
        graph.addEdge(endif.getOutputPort(0), output.getInputPort(0));

        // Set the default values
        // This needs to be after connection.
        amount.setDefaultValue("500");
View Full Code Here

                .getControlInPort());
        graph.addEdge(ifNode.getControlOutPorts().get(1), constYes
                .getControlInPort());
        graph.addEdge(approver.getOutputPort(0), endif.getInputPort(0));
        graph.addEdge(constYes.getOutputPort(0), endif.getInputPort(1));
        graph.addEdge(endif.getOutputPort(0), output.getInputPort(0));

        // Set the default values
        // This needs to be after connection.
        amount.setDefaultValue("500");
        constYes.setValue("Yes");
View Full Code Here

          if (dataPort.getName().equals(
              ((DataPort) streamedInputOutPort).getName())) {
            InputNode newNode = (InputNode) canvas.addNode(
                inputComponent, new Point(250 + 5 * count,
                    200 + count * 50));
            graph.addEdge(newNode.getOutputPort(0), dataPort);
            newNode.setDefaultValue(inputNode.getDefaultValue());
            break;
          }
        }

View Full Code Here

      }
      ++count;
    }
    for (DataPort dataPort : workflowInPorts) {
      if (dataPort.getFromNode() == null) {
        graph.addEdge(cepOutPorts.get(0), dataPort);
      }
    }

    List<DataPort> inputs = cepNode.getInputPorts();
    count = 0;
View Full Code Here

    List<DataPort> inputs = cepNode.getInputPorts();
    count = 0;
    for (DataPort dataPort : inputs) {
      Node inputNode = canvas.addNode(inputComponent, new Point(
          5 + 5 * count, 5 + count * 50));
      graph.addEdge(inputNode.getOutputPort(0), dataPort);
      ++count;
    }
    OutputComponent outputComponent = new OutputComponent();
    List<DataPort> outputPorts = workflowNode.getOutputPorts();

View Full Code Here

    count = 0;
    for (DataPort dataPort : outputPorts) {
      Node outNode = canvas.addNode(outputComponent, new Point(
          900 + count * 5, 100 + count * 50));
      graph.addEdge(dataPort, outNode.getInputPort(0));
      ++count;
    }

  }

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.