Package com.asakusafw.compiler.flow

Examples of com.asakusafw.compiler.flow.FlowGraphGenerator.connect()


        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");

        gen.connect("in1", "a").connect("a", "op1").connect("op1", "c").connect("c", "out1");
        gen.connect("in2", "b").connect("b", "op2").connect("op2", "d").connect("d", "out2");
        gen.connect("op1", "e").connect("e", "out2");

        FlowPath a = FlowGraphUtil.getSucceedBoundaryPath(gen.get("a"));
        FlowPath b = FlowGraphUtil.getSucceedBoundaryPath(gen.get("b"));

        FlowPath path = a.union(b);
View Full Code Here


        gen.definePseud("d", FlowBoundary.STAGE);
        gen.definePseud("e", FlowBoundary.STAGE);
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");

        gen.connect("in1", "a").connect("a", "op1").connect("op1", "c").connect("c", "out1");
        gen.connect("in2", "b").connect("b", "op2").connect("op2", "d").connect("d", "out2");
        gen.connect("op1", "e").connect("e", "out2");

        FlowPath a = FlowGraphUtil.getSucceedBoundaryPath(gen.get("a"));
        FlowPath b = FlowGraphUtil.getPredeceaseBoundaryPath(gen.get("e"));
View Full Code Here

        gen.definePseud("e", FlowBoundary.STAGE);
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");

        gen.connect("in1", "a").connect("a", "op1").connect("op1", "c").connect("c", "out1");
        gen.connect("in2", "b").connect("b", "op2").connect("op2", "d").connect("d", "out2");
        gen.connect("op1", "e").connect("e", "out2");

        FlowPath a = FlowGraphUtil.getSucceedBoundaryPath(gen.get("a"));
        FlowPath b = FlowGraphUtil.getPredeceaseBoundaryPath(gen.get("e"));
View Full Code Here

        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");

        gen.connect("in1", "a").connect("a", "op1").connect("op1", "c").connect("c", "out1");
        gen.connect("in2", "b").connect("b", "op2").connect("op2", "d").connect("d", "out2");
        gen.connect("op1", "e").connect("e", "out2");

        FlowPath a = FlowGraphUtil.getSucceedBoundaryPath(gen.get("a"));
        FlowPath b = FlowGraphUtil.getPredeceaseBoundaryPath(gen.get("e"));

        FlowPath path = a.transposeIntersect(b);
View Full Code Here

    @Test
    public void createBlock_empty() {
        FlowGraphGenerator gen = graph();
        gen.defineInput("in");
        gen.defineOutput("out");
        gen.connect("in", "out");
        FlowPath path = FlowGraphUtil.getSucceedBoundaryPath(gen.get("in"));

        FlowBlock b0 = path.createBlock(gen.toGraph(), 0, true, true);
        assertThat(b0.getElements(), is(gen.getAsSet("in", "out")));
        assertThat(input(b0.getBlockInputs()), is(gen.inputs()));
View Full Code Here

        gen.definePseud("d", FlowBoundary.STAGE);
        gen.definePseud("e", FlowBoundary.STAGE);
        gen.definePseud("f", FlowBoundary.STAGE);
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.connect("in1", "a").connect("a", "op1").connect("op1", "d").connect("d", "out1");
        gen.connect("in2", "b").connect("b", "op2").connect("op2", "e").connect("e", "out2");
        gen.connect("in1", "c").connect("c", "op1").connect("op2", "f").connect("f", "out1");
        gen.connect("in3", "op2").connect("op1", "out3");
        return gen;
    }
View Full Code Here

        gen.definePseud("e", FlowBoundary.STAGE);
        gen.definePseud("f", FlowBoundary.STAGE);
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.connect("in1", "a").connect("a", "op1").connect("op1", "d").connect("d", "out1");
        gen.connect("in2", "b").connect("b", "op2").connect("op2", "e").connect("e", "out2");
        gen.connect("in1", "c").connect("c", "op1").connect("op2", "f").connect("f", "out1");
        gen.connect("in3", "op2").connect("op1", "out3");
        return gen;
    }
View Full Code Here

    public void plan_flowpart_wide() {
        FlowGraphGenerator fp2a = new FlowGraphGenerator();
        fp2a.defineInput("in");
        fp2a.defineOperator("op1", "in", "out");
        fp2a.defineOutput("out");
        fp2a.connect("in", "op1").connect("op1", "out");

        FlowGraphGenerator fp2b = new FlowGraphGenerator();
        fp2b.defineInput("in");
        fp2b.defineOperator("op2", "in", "out");
        fp2b.defineOutput("out");
View Full Code Here

        FlowGraphGenerator fp2b = new FlowGraphGenerator();
        fp2b.defineInput("in");
        fp2b.defineOperator("op2", "in", "out");
        fp2b.defineOutput("out");
        fp2b.connect("in", "op2").connect("op2", "out");

        FlowGraphGenerator fp1 = new FlowGraphGenerator();
        fp1.defineInput("in");
        fp1.defineFlowPart("fp2a", fp2a.toGraph());
        fp1.defineFlowPart("fp2b", fp2b.toGraph());
View Full Code Here

        FlowGraphGenerator fp1 = new FlowGraphGenerator();
        fp1.defineInput("in");
        fp1.defineFlowPart("fp2a", fp2a.toGraph());
        fp1.defineFlowPart("fp2b", fp2b.toGraph());
        fp1.defineOutput("out");
        fp1.connect("in", "fp2a").connect("fp2a", "fp2b").connect("fp2b", "out");

        gen.defineInput("in");
        gen.defineFlowPart("fp1", fp1.toGraph());
        gen.defineOutput("out");
        gen.connect("in", "fp1").connect("fp1", "out");
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.