Examples of bindConnection()


Examples of org.openquark.gems.client.Gem.PartInput.bindConnection()

                }
                for (int i = 0, nInputParts = gem.getNInputs(); i < nInputParts; i++) {
                    PartInput inputPart = gem.getInputPart(i);
                    Connection inputConnection = inputPart.getConnection();
                    if (inputConnection != null) {
                        inputPart.bindConnection(null);
                        inputConnection.getSource().bindConnection(null);

                        connectionSet.remove(inputConnection);
                    }
                }
View Full Code Here

Examples of org.openquark.gems.client.Gem.PartInput.bindConnection()

            PartInput freedInput = conn.getDestination();
            Gem.PartOutput disconnectedOutput = conn.getSource();

            // (HACK!?) Temporarily re-bind a connection so that argument target resolution can take place for the connected tree.
            // Collectors targeted by arguments on trees rooted at collectors at inner scopes of the current tree will be affected.
            freedInput.bindConnection(conn);
            disconnectedOutput.bindConnection(conn);

            // Find collectors targeted by free inputs in the descendant gem forest
            // (when considering the gem graph after connection)
            List<PartInput> freeInputsInDescendantForestList =
View Full Code Here

Examples of org.openquark.gems.client.Gem.PartInput.bindConnection()

                    affectedCollectorSet.add(inputArgumentTarget);
                }
            }

            // Unbind the connection.
            freedInput.bindConnection(null);
            disconnectedOutput.bindConnection(null);
        }
       
        // Update the corresponding collectors.
        updateForArgumentChange(affectedCollectorSet);
View Full Code Here

Examples of org.openquark.gems.client.Gem.PartInput.bindConnection()

                Gem.PartOutput source = oldInputConnection.getSource();
                PartInput dest = codeGem.getInputPart(i);

                Connection newConnection = new Connection(source, dest);
                source.bindConnection(newConnection);
                dest.bindConnection(newConnection);
            }
        }

        Connection oldOutputConnection = changedGem.getOutputPart().getConnection();
        if (oldOutputConnection != null) {
View Full Code Here

Examples of org.openquark.gems.client.Gem.PartInput.bindConnection()

            Gem.PartOutput source = codeGem.getOutputPart();
            PartInput dest = oldOutputConnection.getDestination();

            Connection newConnection = new Connection(source, dest);
            source.bindConnection(newConnection);
            dest.bindConnection(newConnection);
        }       

        // Grab the old inputs.
        List<PartInput> oldUnburntTreeInputList =
            new ArrayList<PartInput>(GemGraph.obtainUnboundDescendantInputs(changedGem.getRootGem(), TraversalScope.TREE, InputCollectMode.UNBURNT_ONLY));
View Full Code Here

Examples of org.openquark.gems.client.Gem.PartInput.bindConnection()

                        ValueNode valueNode = valueGem.getValueNode().transmuteValueNode(valueNodeBuilderHelper, valueNodeTransformer, newSourceType);
                       
                        // Create a temporary value gem and connect it.
                        ValueGem tempValueGem = new ValueGem(valueNode);
                        PartInput connectedInput = outputConnection.getDestination();
                        connectedInput.bindConnection(new Connection(tempValueGem.getOutputPart(), connectedInput));
                       
                        // Add to the set of temporarily disconnected value gem connections.
                        disconnectedValueGemConnections.add(outputConnection);
                    }
                }
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.