Examples of TeeConnection


Examples of eu.admire.dispel.graph.TeeConnection

        mExecutionState.getUsedProcessingElements().clear();
    }
   
    public void setConnection(String name) throws TypeMismatchException
    {
        Connection connection = new TeeConnection();
        Variable var = new Variable(new ConnectionType(), connection);
        mExecutionState.getVariables().put(name, var);
    }
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

        Graph graph = new Graph();
        ProcessingElementNode nodeA = new ProcessingElementNode("uk.org.ogsadai.SQLQuery");
        graph.add(nodeA);
        ProcessingElementNode nodeB = new ProcessingElementNode("uk.org.ogsadai.DeliverToRequestStatus");
        graph.add(nodeB);
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection connection2 = new TeeConnection();
        nodeA.connectOutput("out2", 0, connection2);
        nodeB.connectInput("in2", 0, connection2);
        String dot = DotGenerator.generate(graph);
//        writeFile(dot);
        System.out.println(dot);
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

        Graph graph = new Graph();
        ProcessingElementNode nodeA = new ProcessingElementNode("uk.org.ogsadai.SQLQuery");
        graph.add(nodeA);
        ProcessingElementNode nodeB = new ProcessingElementNode("eu.admire.Results");
        graph.add(nodeB);
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection connection2 = new TeeConnection();
        nodeA.connectOutput("out2", 0, connection2);
        nodeB.connectInput("in2", 0, connection2);
        Map<String, Variable> variables = new HashMap<String, Variable>();
        variables.put("query", new Variable(new ProcessingElementType("uk.org.ogsadai.SQLQuery"), nodeA));
        variables.put("results", new Variable(new ProcessingElementType("eu.admire.Results"), nodeB));
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

        Graph graph = new Graph();
        ProcessingElementNode nodeA = new ProcessingElementNode("uk.org.ogsadai.SQLQuery");
        graph.add(nodeA);
        ProcessingElementNode nodeB = new ProcessingElementNode("uk.org.ogsadai.DeliverToRequestStatus");
        graph.add(nodeB);
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection connection2 = new TeeConnection();
        nodeA.connectOutput("out1", 1, connection2);
        nodeB.connectInput("in2", 0, connection2);
        String dot = DotGenerator.generate(graph);
//        writeFile(dot);
        System.out.println(dot);
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

        nodeA.setDescriptor(desc);
        graph.add(nodeA);
        ProcessingElementNode nodeB = new ProcessingElementNode("uk.org.ogsadai.DeliverToRequestStatus");
        nodeB.setDescriptor(desc);
        graph.add(nodeB);
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection connection2 = new TeeConnection();
        nodeA.connectOutput("out1", 1, connection2);
        nodeB.connectInput("in2", 0, connection2);
        String dot = DotGenerator.generate(graph);
//        writeFile(dot);
        System.out.println(dot);
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

        graph.add(nodeA);
        ProcessingElementNode nodeB = new ProcessingElementNode("uk.org.ogsadai.TupleToWebRowSetCharArrays");
        graph.add(nodeB);
        ProcessingElementNode nodeC = new ProcessingElementNode("uk.org.ogsadai.DeliverToRequestStatus");
        graph.add(nodeC);
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection connection2 = new TeeConnection();
        nodeB.connectOutput("data", 0, connection2);
        nodeC.connectInput("in1", 0, connection2);
        Connection connection3 = new TeeConnection();
        nodeA.connectOutput("data", 0, connection3);
        nodeC.connectInput("data", 0, connection3);
        String dot = DotGenerator.generate(graph);
//        writeFile(dot);
        System.out.println(dot);
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

        LiteralValuesNode nodeL = new LiteralValuesNode("VALUE");
        graph.add(nodeL);
        ProcessingElementNode nodeA = new ProcessingElementNode("uk.org.ogsadai.SQLQuery");
        nodeA.connectInput("expression", 0, nodeL.getOutput());
        ProcessingElementNode nodeB = new ProcessingElementNode("uk.org.ogsadai.TupleToWebRowSetCharArrays");
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection out = new TeeConnection();
        nodeB.connectOutput("out2", 0, out);
        CompositeProcessingElement nodeC = new CompositeProcessingElement(
                "Composite",
                Arrays.<RequestNode>asList(nodeA, nodeB));
        Map<String, Map<Integer, Connection>> inputs = new HashMap<String, Map<Integer, Connection>>();
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

        LiteralValuesNode nodeL = new LiteralValuesNode("VALUE");
        graph.add(nodeL);
        ProcessingElementNode nodeA = new ProcessingElementNode("uk.org.ogsadai.SQLQuery");
        nodeA.connectInput("expression", 0, nodeL.getOutput());
        ProcessingElementNode nodeB = new ProcessingElementNode("uk.org.ogsadai.TupleToWebRowSetCharArrays");
        Connection connection = new TeeConnection();
        nodeA.connectOutput("out1", 0, connection);
        nodeB.connectInput("in1", 0, connection);
        Connection out = new TeeConnection();
        nodeB.connectOutput("out2", 0, out);
        CompositeProcessingElement nodeC = new CompositeProcessingElement(
                "Composite",
                Arrays.<RequestNode>asList(nodeA, nodeB));
        Map<String, Map<Integer, Connection>> inputs = new HashMap<String, Map<Integer, Connection>>();
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

                return result;
            }
        }
        else if (type instanceof ConnectionType)
        {
            return new TeeConnection();
        }
        else
        {
            throw new IllegalArgumentException("Type " + type + " cannot be instantiated.");
        }
View Full Code Here

Examples of eu.admire.dispel.graph.TeeConnection

                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
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.