Package com.asakusafw.vocabulary.flow.graph

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph


        File compileWorkDir = driverContext.getCompilerWorkingDirectory();
        if (compileWorkDir.exists()) {
            FileUtils.forceDelete(compileWorkDir);
        }

        FlowGraph flowGraph = jobFlowClass.getGraph();
        String batchId = "bid";
        String flowId = jobFlowClass.getConfig().name();
        JobflowInfo jobflowInfo = DirectFlowCompiler.compile(
                flowGraph,
                batchId,
View Full Code Here


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

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(true));
    }
View Full Code Here

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

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(false));
    }
View Full Code Here

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

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(false));
    }
View Full Code Here

        gen.defineInput("in");
        gen.defineOperator("op", "in", "out opened", Connectivity.OPTIONAL);
        gen.defineOutput("out");
        gen.connect("in", "op.in").connect("op.out", "out");

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(true));
    }
View Full Code Here

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

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(false));
    }
View Full Code Here

        gen.defineInput("in");
        gen.defineFlowPart("c", comp.toGraph());
        gen.defineOutput("out");
        gen.connect("in", "c.in").connect("c.out", "out");

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(false));
    }
View Full Code Here

        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.connect("in1", "op1").connect("op1.a", "op2").connect("op2", "out1");
        gen.connect("op1.b", "out2");

        FlowGraph graph = gen.toGraph();
        getPlanner().insertCheckpoints(graph);
        assertThat(FlowGraphUtil.collectBoundaries(graph),
                not(gen.getAsSet("in1", "op1", "op2", "out1", "out2")));

        Set<FlowElement> a = FlowGraphUtil.getSucceedingBoundaries(gen.output("op1.a"));
View Full Code Here

        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.connect("in1", "op1").connect("op1.a", "op2").connect("op2", "out1");
        gen.connect("op1.b", "out2");

        FlowGraph graph = gen.toGraph();
        getPlanner().insertCheckpoints(graph);

        assertThat(FlowGraphUtil.collectBoundaries(graph),
                is(gen.getAsSet("in1", "op1", "out1", "out2")));
    }
View Full Code Here

    public void insertIdentities_nothing() {
        gen.defineInput("in");
        gen.defineOperator("op", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op.in").connect("op.out", "out");
        FlowGraph graph = gen.toGraph();
        getPlanner().insertIdentities(graph);

        assertThat(FlowGraphUtil.collectElements(graph),
                is(gen.getAsSet("in", "op", "out")));
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.vocabulary.flow.graph.FlowGraph

Copyright © 2018 www.massapicom. 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.