Examples of InputNode


Examples of com.sun.hotspot.igv.data.InputNode

        for (InputNode n : a.getNodes()) {
            Integer key = n.getId();


            if (keyMapB.containsKey(key)) {
                InputNode nB = keyMapB.get(key);
                pairs.add(new Pair(n, nB));
            }
        }

        return createDiff(a, b, pairs);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.InputNode

        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);
        input2.setPosition(new Point(50, 150));

        InputNode input3 = (InputNode) workflow.addNode(inputComponent);
        input3.setPosition(new Point(50, 250));

        // Adder node
        Component adderComp = this.componentRegistry
                .getComponent(Adder.WSDL_PATH);
        Node adder = workflow.addNode(adderComp);
        adder.setPosition(new Point(200, 100));

        // Sub workflow
        WorkflowComponent subWorkflowComponent = this.gpelComponentRegistry
                .getComponent(subWorkflowID);
        Node subWorkflow = workflow.addNode(subWorkflowComponent);
        subWorkflow.setPosition(new Point(350, 150));

        // Output
        OutputComponent outputComponent = new OutputComponent();
        OutputNode outParamNode = (OutputNode) workflow
                .addNode(outputComponent);
        outParamNode.setPosition(new Point(800, 150));

        // Connect ports
        graph.addEdge(input1.getOutputPort(0), adder.getInputPort(0));
        graph.addEdge(input2.getOutputPort(0), adder.getInputPort(1));
        graph.addEdge(adder.getOutputPort(0), subWorkflow.getInputPort(0));
        graph.addEdge(input3.getOutputPort(0), subWorkflow.getInputPort(1));
        graph.addEdge(subWorkflow.getOutputPort(0), outParamNode
                .getInputPort(0));

        // Set the default values
        // This needs to be after connection.
        input1.setDefaultValue("2");
        input2.setDefaultValue("3");
        input3.setDefaultValue("4");
        return workflow;
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.InputNode

        }else if(GraphSchema.NODE_TYPE_CEP.equals(type)){
          node = new CepNode(nodeElement);
        }else if (GraphSchema.NODE_TYPE_WORKFLOW.equals(type)) {
            node = new WorkflowNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_INPUT.equals(type)) {
            node = new InputNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_OUTPUT.equals(type)) {
            node = new OutputNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_CONSTANT.equals(type)) {
            node = new ConstantNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_SPLIT.equals(type)) {
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.InputNode

        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.graph.system.InputNode

    }

    // Create input fields
    List<InputNode> inputNodes = GraphUtil.getInputNodes(this.workflow.getGraph());
    for (Iterator<InputNode> iterator = inputNodes.iterator(); iterator.hasNext();) {
      InputNode node = iterator.next();
      String id = node.getID();
      QName parameterType = node.getParameterType();

      /*
       * If input node has no connection, skip it
       */
      if (parameterType == null) {
        iterator.remove();
        continue;
      }

      JLabel nameLabel = new JLabel(id);
      JLabel typeField = new JLabel(parameterType.getLocalPart());
      XBayaTextField paramField = new XBayaTextField();
      Object value = node.getDefaultValue();

      String valueString;
      if (value == null) {
        valueString = "";
      } else {
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.InputNode

    final List<InputNode> inputNodes = GraphUtil.getInputNodes(this.workflow.getGraph());
    final org.xmlpull.v1.builder.XmlElement inputs = builder.newFragment("inputs");
    ODEClient client = new ODEClient();
    for (int i = 0; i < inputNodes.size(); i++) {
      InputNode inputNode = inputNodes.get(i);
      XBayaTextField parameterTextField = this.parameterTextFields.get(i);
      String id = inputNode.getID();
      String value = parameterTextField.getText();
      inputNode.setDefaultValue(value);
    }

    final String xregistryUrl = this.xRegistryTextField.getText();
    if (null != xregistryUrl && !"".equals(xregistryUrl)) {
      try {
        this.engine.getConfiguration().setXRegistryURL(new URI(xregistryUrl));
      } catch (URISyntaxException e) {
        this.engine.getErrorWindow().error(e);
      }
    }

    final String gFacUrl = this.gfacTextField.getText();
    if (null != gFacUrl && !"".equals(gFacUrl)) {
      try {
        this.engine.getConfiguration().setGFacURL(new URI(gFacUrl));
      } catch (URISyntaxException e) {
        this.engine.getErrorWindow().error(e);
      }
    }
    this.engine.getConfiguration().setTopic(topic);

   
    /*
     * Load host description from xregistry and add to interpreter
     */   
    LeadResourceMapping mapping = null;
    String host = this.resourceSelectionComboBox.getText();
    if (host != null && !host.isEmpty()) {
      System.out.println("YEAHHH");
      XRegistryAccesser xregistryAccesser = new XRegistryAccesser(this.engine);

      HostDescriptionRegistrationWindow hostWindow = HostDescriptionRegistrationWindow.getInstance();

      if (!hostWindow.isEngineSet()) {
        hostWindow.setXBayaEngine(this.engine);
      }

      HostBean hostBean = xregistryAccesser.getHostBean(host);
     
      mapping = new LeadResourceMapping(host);
      try{
        mapping.setGatekeeperEPR(new URI(hostBean.getGateKeeperendPointReference()));
      }catch(Exception e){
        this.engine.getErrorWindow().error(e);
      }
     
    }
   
    final LeadResourceMapping resourceMapping = mapping;
    final String topicString = topic;
    new Thread() {
      /**
       * @see java.lang.Thread#run()
       */
      @Override
      public void run() {

        boolean remote = false;

        if (remote) {

          try {
            DynamicWorkflowRunnerWindow.this.engine.getMonitor().getConfiguration().setTopic(topicString);

            DynamicWorkflowRunnerWindow.this.engine.getMonitor().start();
          } catch (MonitorException e1) {
            DynamicWorkflowRunnerWindow.this.engine.getErrorWindow().error(e1);
          }
          try {

            WorkflowInterpretorStub stub = new WorkflowInterpretorStub("http://silktree.cs.indiana.edu:18080/axis2/services/WorkflowInterpretor?wsdl");
            NameValue[] configurations = new NameValue[6];
            configurations[0] = new NameValue();
            configurations[0].setName(HeaderConstants.HEADER_ELEMENT_GFAC);
            configurations[0].setValue(engine.getConfiguration().getGFacURL().toString());
            configurations[1] = new NameValue();
            configurations[1].setName(HeaderConstants.HEADER_ELEMENT_XREGISTRY);
            if (null == engine.getConfiguration().getXRegistryURL()) {
              configurations[1].setValue(XBayaConstants.DEFAULT_XREGISTRY_URL.toString());
            } else {
              configurations[1].setValue(engine.getConfiguration().getXRegistryURL().toString());
            }
            configurations[2] = new NameValue();
            configurations[2].setName(HeaderConstants.HEADER_ELEMENT_PROXYSERVER);
            configurations[2].setValue(engine.getConfiguration().getMyProxyServer());

            configurations[3] = new NameValue();
            configurations[3].setName(HeaderConstants.HEADER_ELEMENT_BROKER);
            configurations[3].setValue(engine.getConfiguration().getBrokerURL().toString());

            configurations[4] = new NameValue();
            configurations[4].setName(HeaderConstants.HEADER_ELEMENT_MSGBOX);
            configurations[4].setValue(engine.getConfiguration().getMessageBoxURL().toString());

            configurations[5] = new NameValue();
            configurations[5].setName(HeaderConstants.HEADER_ELEMENT_DSC);
            configurations[5].setValue(engine.getConfiguration().getDSCURL().toString());

            NameValue[] inputNameVals = new NameValue[inputNodes.size()];
            for (int i = 0; i < inputNodes.size(); i++) {
              inputNameVals[i] = new NameValue();
              InputNode inputNode = inputNodes.get(i);
              String id = inputNode.getID();
              String value = inputNode.getDefaultValue().toString();
              inputNameVals[i].setName(id);
              inputNameVals[i].setValue(value);
            }

            // WorkflowInterpretorSkeleton skel = new
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.InputNode

    /**
     * @see edu.indiana.extreme.xbaya.component.Component#createNode(edu.indiana.extreme.xbaya.graph.Graph)
     */
    @Override
    public InputNode createNode(Graph graph) {
        InputNode node = new InputNode(graph);
        node.setName(NAME);
        node.setComponent(this);

        // Creates a unique ID for the node. This has to be after setName().
        node.createID();

        // Creates a output port
        createPorts(node);

        return node;
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.InputNode

        this.graph.setOutputMetadata(outputMetadata);

        // Sort the nodes in the graph in the order of sorted inputs, sorted
        // outputs, and the rest.
        for (int i = 0; i < this.inputNodes.size(); i++) {
            InputNode inputNode = this.inputNodes.get(i);
            Collections.swap(this.nodes, i, this.nodes.indexOf(inputNode));
        }
        for (int i = 0; i < this.outputNodes.size(); i++) {
            OutputNode outputNode = this.outputNodes.get(i);
            Collections.swap(this.nodes, this.inputNodes.size() + i, this.nodes
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.InputNode

        cepNode.addOutputPort(new CepPort(dataPort.toXML()));
      }
      ((NodeImpl)cepNode).setGraph(wsGraph);
      return cepNode;
    }else if(node instanceof InputNode){
      InputNode inputNode = new InputNode(((InputNode) node).toXML());
     
     
      List<DataPort> outputPorts = node.getOutputPorts();
      for (DataPort dataPort : outputPorts) {
        inputNode.addOutputPort(new CepPort(dataPort.toXML()));
      }
      ((NodeImpl)inputNode).setGraph(wsGraph);
      return inputNode;
    }else if(node instanceof OutputNode){
      OutputNode outputNode = new OutputNode(((OutputNode) node).toXML());
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.InputNode

        // TODO error check for user inputs

        List<InputNode> inputNodes = GraphUtil.getInputNodes(this.workflow
                .getGraph());
        for (int i = 0; i < inputNodes.size(); i++) {
            InputNode inputNode = inputNodes.get(i);
            XBayaTextField parameterTextField = this.parameterTextFields.get(i);
            String id = inputNode.getID();
            String value = parameterTextField.getText();
            arguments.add("-" + id);
            arguments.add(value);
        }
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.