Package org.apache.airavata.xbaya.graph.dynamic

Examples of org.apache.airavata.xbaya.graph.dynamic.DynamicNode


        this.outputs = new ArrayList<DynamicComponentPort>();
        this.outputs.add(new DynamicComponentPort(this));
    }

    public Node createNode(Graph graph) {
        DynamicNode node = new DynamicNode(graph);

        // Copy some infomation from the component

        node.setName(getName());
        node.setComponent(new DynamicComponent());

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

        // Creat ports
        createPorts(node);

        return node;
View Full Code Here


    DynamicComponent dynamicComponent = (DynamicComponent) node
        .getComponent();
    String className = dynamicComponent.getClassName();
    String operationName = dynamicComponent.getOperationName();
    URL implJarLocation = dynamicComponent.getImplJarLocation();
    DynamicNode dynamicNode = (DynamicNode) node;
    LinkedList<Object> inputs = new LinkedList<Object>();
    List<DataPort> inputPorts = dynamicNode.getInputPorts();
    for (DataPort dataPort : inputPorts) {
      Object inputVal = InterpreterUtil.findInputFromPort(dataPort,
          this.invokerMap);

      /*
 
View Full Code Here

        if (this.draggedPort != null) {
            GraphPiece graphPiece = this.graph.getGUI().getGraphPieceAt(point);
            if (graphPiece instanceof DynamicNode) {
                if (this.draggedPort.getKind() == Kind.DATA_OUT && draggedPort instanceof DataPort) {
                    this.panel.setCursor(SwingUtil.CROSSHAIR_CURSOR);
                    DynamicNode dynamicNode = (DynamicNode) graphPiece;
                    dynamicNode.getComponent();
                    DataPort freePort = dynamicNode.getFreeInPort();
                    try {
                        freePort.copyType((DataPort) draggedPort);
                    } catch (GraphException e) {
                        engine.getErrorWindow().error(e);
                        return;
View Full Code Here

TOP

Related Classes of org.apache.airavata.xbaya.graph.dynamic.DynamicNode

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.