Examples of defineInput()


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

    }

    private FlowGraphGenerator graph() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineInput("in2");
        gen.defineInput("in3");
        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.defineOutput("out3");
        gen.definePseud("a", FlowBoundary.STAGE);
View Full Code Here

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

    private FlowGraphGenerator graph() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineInput("in2");
        gen.defineInput("in3");
        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.defineOutput("out3");
        gen.definePseud("a", FlowBoundary.STAGE);
        gen.definePseud("b", FlowBoundary.STAGE);
View Full Code Here

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

     * {@link StagePlanner#plan(FlowGraph)}
     */
    @Test
    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();
View Full Code Here

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

        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");
        fp2b.connect("in", "op2").connect("op2", "out");

        FlowGraphGenerator fp1 = new FlowGraphGenerator();
View Full Code Here

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

        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());
        fp1.defineOutput("out");
        fp1.connect("in", "fp2a").connect("fp2a", "fp2b").connect("fp2b", "out");
View Full Code Here

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

     * {@link FlowPath#union(FlowPath)}
     */
    @Test
    public void union() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineInput("in2");
        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.definePseud("a", FlowBoundary.STAGE);
        gen.definePseud("b", FlowBoundary.STAGE);
View Full Code Here

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

     */
    @Test
    public void union() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineInput("in2");
        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.definePseud("a", FlowBoundary.STAGE);
        gen.definePseud("b", FlowBoundary.STAGE);
        gen.definePseud("c", FlowBoundary.STAGE);
View Full Code Here

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

     * {@link StagePlanner#validate(FlowGraph)}
     */
    @Test
    public void validate_componentError() {
        FlowGraphGenerator comp = new FlowGraphGenerator();
        comp.defineInput("in");
        comp.defineOperator("op", "in", "out opened");
        comp.defineOutput("out");
        comp.connect("in", "op.in").connect("op.out", "out");


View Full Code Here

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

     * {@link StagePlanner#normalizeFlowGraph(FlowGraph)}
     */
    @Test
    public void normalizeFlowGraph_component() {
        FlowGraphGenerator comp = new FlowGraphGenerator();
        comp.defineInput("in");
        comp.defineOperator("op1", "in", "out");
        comp.definePseud("id");
        comp.defineOutput("out1");
        comp.defineOutput("out2");
        comp.connect("in", "op1").connect("op1", "id").connect("id", "out1");
View Full Code Here

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

     * {@link StagePlanner#plan(FlowGraph)}
     */
    @Test
    public void plan_flowpart() {
        FlowGraphGenerator comp = new FlowGraphGenerator();
        comp.defineInput("in");
        comp.defineOperator("op1", "in", "out");
        comp.defineOperator("op2", "in", "out", FlowBoundary.SHUFFLE);
        comp.defineOutput("out");
        comp.connect("in", "op1").connect("op1", "op2").connect("op2", "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.