Examples of defineInput()


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

     * {@link FlowBlock#compaction()}
     */
    @Test
    public void compaction_deadIn() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineInput("in2");
        gen.defineOperator("op1", "in1 in2", "out1 out2");
        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.connect("in1", "op1.in1").connect("op1.out1", "out1");
View Full Code Here

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

     */
    @Test
    public void compaction_deadIn() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineInput("in2");
        gen.defineOperator("op1", "in1 in2", "out1 out2");
        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.connect("in1", "op1.in1").connect("op1.out1", "out1");
        gen.connect("in2", "op1.in2").connect("op1.out2", "out2");
View Full Code Here

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

     * {@link FlowBlock#compaction()}
     */
    @Test
    public void compaction_deadOut() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineInput("in2");
        gen.defineOperator("op1", "in1 in2", "out1 out2");
        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.connect("in1", "op1.in1").connect("op1.out1", "out1");
View Full Code Here

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

     */
    @Test
    public void compaction_deadOut() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineInput("in2");
        gen.defineOperator("op1", "in1 in2", "out1 out2");
        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.connect("in1", "op1.in1").connect("op1.out1", "out1");
        gen.connect("in2", "op1.in2").connect("op1.out2", "out2");
View Full Code Here

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

     * {@link FlowBlock#compaction()}
     */
    @Test
    public void compaction_emptyIn() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.defineOutput("out1");
        gen.connect("in1", "op1").connect("op1", "op2").connect("op2", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowBlock#compaction()}
     */
    @Test
    public void compaction_stopOut() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.defineOutput("out1");
        gen.connect("in1", "op1").connect("op1", "op2").connect("op2", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowBlock#compaction()}
     */
    @Test
    public void compaction_mandatoryStop() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out", ObservationCount.AT_LEAST_ONCE);
        gen.defineOutput("out1");
        gen.connect("in1", "op1").connect("op1", "op2").connect("op2", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowBlock#compaction()}
     */
    @Test
    public void compaction_stable() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in1");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out");
        gen.defineOutput("out1");
        gen.connect("in1", "op1").connect("op1", "op2").connect("op2", "out1");
        FlowBlock bin = FlowBlock.fromPorts(
View Full Code Here

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

     * {@link FlowGraphUtil#inlineFlowPart(FlowElement, FlowElementAttribute...)}
     */
    @Test
    public void inlineFlowPart() {
        FlowGraphGenerator cgen = new FlowGraphGenerator();
        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();
View Full Code Here

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

     * {@link FlowBlock#isEmpty()}
     */
    @Test
    public void isEmpty() {
        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op").connect("op", "out");

        FlowBlock block = FlowBlock.fromPorts(
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.