Package com.asakusafw.compiler.flow

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


        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.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.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.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();
        assertThat(block.getElements().size(), is(1));
View Full Code Here

        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();
        assertThat(block.getElements().size(), is(2));
View Full Code Here

        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(
                0,
View Full Code Here

                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));
        b1.detach();
View Full Code Here

        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(
                0,
View Full Code Here

                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));
        b1.detach();
View Full Code Here

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