Package com.asakusafw.compiler.flow

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


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

        FlowBlock b1 = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs("op1")),
View Full Code Here


        gen.defineInput("in1");
        gen.definePseud("id");
        gen.defineOperator("op1", "in", "out");
        gen.defineOutput("out1");
        gen.connect("in1", "id").connect("id", "out1");
        gen.connect("in1", "op1").connect("op1", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
                Arrays.asList(gen.output("in1")),
View Full Code Here

    public void compaction_removeBlock() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.definePseud("id");
        gen.defineOutput("out1");
        gen.connect("in1", "id").connect("id", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
                Arrays.asList(gen.output("in1")),
View Full Code Here

        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;
    }

    private Set<FlowElementInput> input(Collection<FlowBlock.Input> inputs) {
View Full Code Here

        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;
    }

    private Set<FlowElementInput> input(Collection<FlowBlock.Input> inputs) {
        Set<FlowElementInput> results = Sets.create();
View Full Code Here

        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.defineOutput("out1");
        gen.connect("in1", "op1").connect("op1", "op2").connect("op2", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
                Arrays.asList(gen.output("in1")),
View Full Code Here

        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out", FlowBoundary.SHUFFLE);
        gen.defineOutput("out1");
        gen.connect("in1", "op1").connect("op1", "op2").connect("op2", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
                Arrays.asList(gen.output("in1")),
View Full Code Here

    public void compaction_stable() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineOperator("op1", "in", "out");
        gen.defineOutput("out1");
        gen.connect("in1", "op1").connect("op1", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
                Arrays.asList(gen.output("in1")),
View Full Code Here

        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.definePseud("op1");
        gen.defineOperator("op2", "in", "out", FlowBoundary.SHUFFLE);
        gen.defineOutput("out1");
        gen.connect("in1", "op1").connect("op1", "op2").connect("op2", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
                Arrays.asList(gen.output("in1")),
View Full Code Here

        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.definePseud("id");
        gen.defineOperator("op1", "in", "out");
        gen.defineOutput("out1");
        gen.connect("in1", "id").connect("id", "out1");
        gen.connect("in1", "op1").connect("op1", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
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.