Package org.apache.airavata.workflow.model.component.system

Examples of org.apache.airavata.workflow.model.component.system.InputComponent


        Component wrfComp = componentRegistry.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


    /**
     * Constructs a WorkflowCreator.
     */
    public WorkflowCreator() {
        this.componentRegistry = new LocalComponentRegistry(XBayaPathConstants.WSDL_DIRECTORY);
        this.inputComponent = new InputComponent();
        this.outputComponent = new OutputComponent();
        this.constantComponent = new ConstantComponent();
        this.splitComponent = new ForEachComponent();
        this.mergeComponent = new EndForEachComponent();
        this.ifComponent = new IfComponent();
View Full Code Here

            if (null == candidatePort) {
                throw new WorkflowRuntimeException("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
                if (clone.getGraph().getNodes().size() < workflow.getGraph().getNodes().size()
View Full Code Here

     * @param graph
     * @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

          Point nodePos = null;
      switch (port.getKind()){
          case DATA_IN:
            if (port.getFromNode()==null) {
          nodePos = new Point(Math.max(0, pos.x - xgap), Math.max(0, pos.y - ygap));
          node = addNode(new InputComponent(), nodePos);
          connect(node.getOutputPorts().get(0), port);
        }
        break;
          case DATA_OUT:
        nodePos = new Point(pos.x + NodeGUI.MINIMUM_WIDTH + xgap, pos.y + ygap);
View Full Code Here

        this.temporaryDirectory = new File("tmp");
        this.temporaryDirectory.mkdir();

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

TOP

Related Classes of org.apache.airavata.workflow.model.component.system.InputComponent

Copyright © 2018 www.massapicom. 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.