Package com.asakusafw.compiler.flow

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


        cgen.defineInput("in");
        cgen.defineOutput("out");
        cgen.defineOperator("op", "in", "out");
        cgen.connect("in", "op.in");
        cgen.connect("op.out", "out");
        FlowGraph component = cgen.toGraph();

        gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOutput("out");
        FlowElement fc = gen.defineFlowPart("c", component);
View Full Code Here


        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
                new ArrayList<FlowElementOutput>(gen.outputs()),
                gen.getAsSet("op"));

        assertThat(block.isEmpty(), is(true));
View Full Code Here

        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs("op")),
                new ArrayList<FlowElementOutput>(gen.outputs()),
                gen.getAsSet("op"));

        assertThat(block.isEmpty(), is(false));
View Full Code Here

        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs()),
                new ArrayList<FlowElementOutput>(gen.outputs("op")),
                gen.getAsSet("op"));

        assertThat(block.isEmpty(), is(false));
View Full Code Here

        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs("op")),
                new ArrayList<FlowElementOutput>(gen.outputs("op")),
                gen.getAsSet("op"));

        assertThat(block.isReduceBlock(), is(true));
View Full Code Here

        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs("op")),
                new ArrayList<FlowElementOutput>(gen.outputs("op")),
                gen.getAsSet("op"));

        assertThat(block.isReduceBlock(), is(false));
View Full Code Here

        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs("op")),
                new ArrayList<FlowElementOutput>(gen.outputs("op")),
                gen.getAsSet("op"));

        block.detach();
View Full Code Here

        gen.defineOutput("out");
        gen.connect("in", "op1").connect("op1", "op2").connect("op2", "out");

        FlowBlock block = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs("op1")),
                new ArrayList<FlowElementOutput>(gen.outputs("op2")),
                gen.getAsSet("op1", "op2"));

        block.detach();
View Full Code Here

        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")),
                new ArrayList<FlowElementOutput>(gen.outputs("op1")),
                gen.getAsSet("op1"));

        FlowBlock b2 = FlowBlock.fromPorts(
View Full Code Here

                new ArrayList<FlowElementOutput>(gen.outputs("op1")),
                gen.getAsSet("op1"));

        FlowBlock b2 = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs("op2")),
                new ArrayList<FlowElementOutput>(gen.outputs("op2")),
                gen.getAsSet("op2"));

        FlowBlock.connect(b1.getBlockOutputs().get(0), b2.getBlockInputs().get(0));
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.