Package eu.admire.dispel.graph

Examples of eu.admire.dispel.graph.Connection


    {
        for (Entry<String, Map<Integer, Connection>> entry : requestNode.getAllOutputs().entrySet())
        {
            for (Entry<Integer, Connection> connections : entry.getValue().entrySet())
            {
                Connection connection = connections.getValue();
                if (parentOutputs.contains(connection))
                {
                    continue;
                }
                for (RequestNodeInput target: connection.getTargets())
                {
                    dot.append(mInstanceNames.get(connection.getSource()));
                    dot.append(":");
                    dot.append("out_");
                    dot.append(connection.getSourceOutputName());
                    dot.append("_");
                    dot.append(connection.getSourceOutputIndex());
                    dot.append(" -> ");
                    dot.append(mInstanceNames.get(target.getRequestNode()));
                    dot.append(":");
                    dot.append("in_");
                    dot.append(target.getName());
                    dot.append("_");
                    dot.append(target.getIndex());
                    dot.append(";\n");
                }
                if (connection.getTargets().size() == 0)
                {
                    // we have an unconnected output
                    String nodename = "Connection" + (++mCounter);
                    dot.append(nodename);
                    dot.append("[shape=point];\n");
                    dot.append(mInstanceNames.get(connection.getSource()));
                    dot.append(":");
                    dot.append("out_");
                    dot.append(connection.getSourceOutputName());
                    dot.append("_");
                    dot.append(connection.getSourceOutputIndex());
                    dot.append(" -> ");
                    dot.append(nodename);
                    dot.append(";\n");
                }
            }
View Full Code Here


    {
        for (Entry<String, Map<Integer, Connection>> entry : requestNode.getAllInputs().entrySet())
        {
            for (Entry<Integer, Connection> connections : entry.getValue().entrySet())
            {
                Connection connection = connections.getValue();
                if (connection.getSource() == null
                        && !parentInputs.contains(connection))
                {
                    String nodename = mConnectionNames.get(connection);
                    if (nodename == null)
                    {
                        nodename = "Connection" + (++mCounter);
                        mConnectionNames.put(connection, nodename);
                        for (RequestNodeInput target : connection.getTargets())
                        {
                            dot.append(nodename);
                            dot.append("[shape=point];\n");
                            dot.append(nodename);
                            dot.append(" -> ");
View Full Code Here

                throw new DuplicateVariableException(mName);
            }
            // if we have a simple connection type then we create an instance
            if (mType instanceof ConnectionType && mArrayDimension == 0)
            {
                Connection connection = new TeeConnection();
                mVariable = new Variable(new ConnectionType(), connection);
            }
            else
            {
                mVariable = new Variable(mType);
View Full Code Here

TOP

Related Classes of eu.admire.dispel.graph.Connection

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.