Examples of StreamSourceNode


Examples of edu.indiana.extreme.xbaya.graph.system.gui.StreamSourceNode

        NodeImpl node;
        if (GraphSchema.NODE_TYPE_WS.equals(type)) {
            node = new WSNode(nodeElement);
        } else if(GraphSchema.NODE_TYPE_STREAM_SOURCE.equals(type)){
          node = new StreamSourceNode(nodeElement);
        }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)) {
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.gui.StreamSourceNode

  /**
   * @see edu.indiana.extreme.xbaya.component.Component#createNode(edu.indiana.extreme.xbaya.graph.Graph)
   */
  @Override
  public StreamSourceNode createNode(Graph graph) {
    StreamSourceNode node = new StreamSourceNode(graph);
    if (this.streamName != null) {
      node.setName(NAME+"_"+this.streamName);
    } else {
      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.gui.StreamSourceNode

            public void actionPerformed(ActionEvent e) {

              String stream = model.getStream(row);
              String rate = model.getStreamRate(row);

              StreamSourceNode node = new StreamSourceComponent(stream, rate)
                  .createNode(engine.getWorkflow().getGraph());
              engine.getGUI().getGraphCanvas().repaint();
              node.setStreamName(stream);
              engine.getWorkflow().getGraph().setStreamModel(model);
            }
          });
          popupMenu.add(addMenuItem);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.system.gui.StreamSourceNode

      this.draggedNode.getGUI().setDraggedFlag(false);
      this.panel.setCursor(SwingUtil.DEFAULT_CURSOR);

      // Check if it s stream grouping
      if (draggedNode instanceof InputNode) {
        StreamSourceNode streamNode = this.graph.getGUI()
            .getStreamSourceAt(point);
        if (streamNode != null) {
          streamNode.addInputNode((InputNode) draggedNode);
        }

      }
      this.draggedNode = null;
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.system.StreamSourceNode

            NodeController.getGUI(this.draggedNode).setDraggedFlag(false);
            this.panel.setCursor(SwingUtil.DEFAULT_CURSOR);

            // Check if it s stream grouping
            if (draggedNode instanceof InputNode) {
                StreamSourceNode streamNode = NodeController.getGUI(this.graph).getStreamSourceAt(point);
                if (streamNode != null) {
                    streamNode.addInputNode((InputNode) draggedNode);
                }

            }
            this.draggedNode = null;
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.system.StreamSourceNode

    /**
     * @see org.apache.airavata.workflow.model.component.Component#createNode(org.apache.airavata.workflow.model.graph.Graph)
     */
    @Override
    public StreamSourceNode createNode(Graph graph) {
        StreamSourceNode node = new StreamSourceNode(graph);
        if (this.streamName != null) {
            node.setName(NAME + "_" + this.streamName);
        } else {
            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 org.apache.airavata.workflow.model.graph.system.StreamSourceNode

    NodeImpl node;
    if (GraphSchema.NODE_TYPE_WS.equals(type)) {
      node = new WSNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_STREAM_SOURCE.equals(type)) {
      node = new StreamSourceNode(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)) {
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.system.StreamSourceNode

    /**
     * @see org.apache.airavata.workflow.model.component.Component#createNode(org.apache.airavata.workflow.model.graph.Graph)
     */
    @Override
    public StreamSourceNode createNode(Graph graph) {
        StreamSourceNode node = new StreamSourceNode(graph);
        if (this.streamName != null) {
            node.setName(NAME + "_" + this.streamName);
        } else {
            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 org.apache.airavata.workflow.model.graph.system.StreamSourceNode

            NodeController.getGUI(this.draggedNode).setDraggedFlag(false);
            this.panel.setCursor(SwingUtil.DEFAULT_CURSOR);

            // Check if it s stream grouping
            if (draggedNode instanceof InputNode) {
                StreamSourceNode streamNode = NodeController.getGUI(this.graph).getStreamSourceAt(point);
                if (streamNode != null) {
                    streamNode.addInputNode((InputNode) draggedNode);
                }

            }
            this.draggedNode = null;
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.system.StreamSourceNode

            NodeController.getGUI(this.draggedNode).setDraggedFlag(false);
            this.panel.setCursor(SwingUtil.DEFAULT_CURSOR);

            // Check if it s stream grouping
            if (draggedNode instanceof InputNode) {
                StreamSourceNode streamNode = NodeController.getGUI(this.graph).getStreamSourceAt(point);
                if (streamNode != null) {
                    streamNode.addInputNode((InputNode) draggedNode);
                }

            }
            this.draggedNode = null;
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.