Package com.asakusafw.compiler.flow

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


        FlowBlock block = path.createBlock(gen.toGraph(), 0, false, false);

        assertThat(block.getElements(), is(gen.getAsSet("op1", "op2")));
        Set<FlowElementInput> inputs = input(block.getBlockInputs());
        Set<FlowElementOutput> outputs = output(block.getBlockOutputs());
        assertThat(inputs, is(gen.inputs("op1", "op2")));
        assertThat(outputs, is(gen.outputs("op1", "op2")));
    }

    /**
     * {@link FlowPath#createBlock(FlowGraph, int, boolean, boolean)}
View Full Code Here


        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()));
        assertThat(output(b0.getBlockOutputs()), is(gen.outputs()));

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

        assertThat(input(b0.getBlockInputs()), is(gen.inputs()));
        assertThat(output(b0.getBlockOutputs()), is(gen.outputs()));

        FlowBlock b1 = path.createBlock(gen.toGraph(), 0, false, true);
        assertThat(b1.getElements(), is(gen.getAsSet("out")));
        assertThat(input(b1.getBlockInputs()), is(gen.inputs("out")));
        assertThat(output(b1.getBlockOutputs()), is(gen.outputs()));

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

        assertThat(input(b1.getBlockInputs()), is(gen.inputs("out")));
        assertThat(output(b1.getBlockOutputs()), is(gen.outputs()));

        FlowBlock b2 = path.createBlock(gen.toGraph(), 0, true, false);
        assertThat(b2.getElements(), is(gen.getAsSet("in")));
        assertThat(input(b2.getBlockInputs()), is(gen.inputs()));
        assertThat(output(b2.getBlockOutputs()), is(gen.outputs("in")));

        try {
            path.createBlock(gen.toGraph(), 0, false, false);
            fail();
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.