Examples of InputComponent


Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

        workflow.setDescription("Hierarchical workflow");

        Graph graph = workflow.getGraph();

        // Input 1
        InputComponent inputComponent = new InputComponent();
        InputNode input1 = (InputNode) workflow.addNode(inputComponent);
        input1.setPosition(new Point(50, 50));

        // Input 2
        InputNode input2 = (InputNode) workflow.addNode(inputComponent);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

        DataPort newPort = newNode.getInputPort(dataPort.getID());
        Node fromNode = dataPort.getFromNode();
        Node newFromNode = nodeMap.get(fromNode);
        if (null == newFromNode) {
          // input to this subworkflow
          InputNode inputNode = new InputComponent().createNode(this);
          addEdge(inputNode.getOutputPort(0), newPort);
        } else {
          String fromPortID = dataPort.getFromPort().getID();
          addEdge(newFromNode.getOutputPort(fromPortID), newPort);
        }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

      NodeImpl nodeImpl = nodes.get(i);
      List<DataPort> inputPorts = nodeImpl.getInputPorts();
      int count = 0;
      for (DataPort dataPort : inputPorts) {
        if (dataPort.getFromNode() == null) {
          Node inputNode = subWorkflow.addNode(new InputComponent());
          inputNode.setPosition(new Point(Math.max(0,
              nodeImpl.getPosition().x - 200), nodeImpl
              .getPosition().y + count * 50));
          subWorkflow.getGraph().addEdge(inputNode.getOutputPort(0),
              dataPort);
 
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

    @Override
    public Component getComponent() {
        Component component = super.getComponent();
        if (component == null) {
            // The component is null when read from the graph XML.
            component = new InputComponent();
            setComponent(component);
        }
        return component;
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

    }

    @Override
    protected void parseComponent(XmlElement componentElement) {
        // No need to parse the XML.
        setComponent(new InputComponent());
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

                .getComponent(WRF_FORECASTING_MODEL_WSDL);
        Node wrfNode = workflow.addNode(wrfComp);
        wrfNode.setPosition(new Point(781, 14));

        // Parameters
        Component inputComponent = new InputComponent();
        Component outputComponent = new OutputComponent();

        // Input parameter node
        InputNode confInput = (InputNode) workflow.addNode(inputComponent);
        confInput.setPosition(new Point(0, 100));
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

        this.temporaryDirectory.mkdir();

        this.componentRegistry = new WebComponentRegistry(
                XBayaConstants.DEFAULT_WEB_REGISTRY.toURL());
        this.componentRegistry.getComponentTree(); // To read components
        this.inputComponent = new InputComponent();
        this.outputComponent = new OutputComponent();
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

        throw new XBayaRuntimeException("Specifies Port was not found:"
            + pair.getRight());
      }
      if (!(candidatePort.getFromNode() instanceof InputNode)) {
        removeUnnecessaryNodes(node, candidatePort, clone);
        Node input = clone.addNode(new InputComponent());
        input.setPosition(new Point(Math.max(0,
            node.getPosition().x - 150), node.getPosition().y));

        // the returned workflows size should be less than that of the
        // original
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

        .getComponent(), new Point(300, 50));

    Graph graph = this.engine.getGUI().getGraphCanvas().getGraph();
    List<DataPort> cepOutPorts = cepNode.getOutputPorts();
    int count = 0;
    InputComponent inputComponent = new InputComponent();
    LinkedList<InputNode> inputNodes = getStaticInputNodes(oldWorkflow);
    List<DataPort> workflowInPorts = workflowNode.getInputPorts();

    for (InputNode inputNode : inputNodes) {
View Full Code Here

Examples of edu.indiana.extreme.xbaya.component.system.InputComponent

     * @param originalFromPorts
     * @throws GraphException
     */
    private void createInputNodes(WSGraph graph, Set<WSPort> originalFromPorts)
            throws GraphException {
        InputComponent inputComponent = new InputComponent();
        for (WSPort originalFromPort : originalFromPorts) {
            InputNode inputNode = inputComponent.createNode(graph);
            List<Port> originalToPorts = originalFromPort.getToPorts();
            boolean first = true;
            for (Port originalToPort : originalToPorts) {
                String toPortID = originalToPort.getID();
                Port toPort = graph.getPort(toPortID);
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.