Examples of empty()


Examples of at.newmedialab.ldpath.template.model.freemarker.TemplateStackModel.empty()

     * @throws java.io.IOException
     */
    @Override
    public void execute(Environment env, Map params, TemplateModel[] loopVars, TemplateDirectiveBody body) throws TemplateException, IOException {
        TemplateStackModel contextStack = (TemplateStackModel)env.getVariable("context");
        if(contextStack == null || contextStack.empty()) {
            throw new TemplateModelException("error; no context node available");
        }
        TemplateNodeModel<Node> context = (TemplateNodeModel<Node>)contextStack.peek();

        SimpleScalar pathScalar = (SimpleScalar)params.get("path");
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

    @Override
    protected void describe() {
        ExOperatorFactory f = new ExOperatorFactory();
        CoreOperatorFactory core = new CoreOperatorFactory();
        Cogroup cog1 = f.cogroup(in1, core.empty(Ex2.class));
        Cogroup cog2 = f.cogroup(in1, core.empty(Ex2.class));
        core.stop(cog1.r2);
        core.stop(cog2.r2);

        FoldFlowFactory fff = new FoldFlowFactory();
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

    @Override
    protected void describe() {
        ExOperatorFactory f = new ExOperatorFactory();
        CoreOperatorFactory core = new CoreOperatorFactory();
        Cogroup cog1 = f.cogroup(in1, core.empty(Ex2.class));
        Cogroup cog2 = f.cogroup(in1, core.empty(Ex2.class));
        core.stop(cog1.r2);
        core.stop(cog2.r2);

        FoldFlowFactory fff = new FoldFlowFactory();
        Confluent<Ex1> con1 = core.confluent(cog1.r1, cog2.r1);
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

     * {@link CoreOperatorFactory#empty(Class)}のテスト。
     */
    @Test
    public void empty() {
        CoreOperatorFactory f = new CoreOperatorFactory();
        Empty<String> empty = f.empty(String.class);
        out.add(empty);

        Graph<String> graph = toGraph();
        assertThat(
                graph.getConnected("in"),
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

                ExOperatorFactory f = new ExOperatorFactory();
                CoreOperatorFactory c = new CoreOperatorFactory();
                Confluent<Ex1> in = c.confluent(pIn1, pIn2);
                Simple simple = uf.simple(in);
                Checkpoint<Ex1> cp = c.checkpoint(simple.out);
                Cogroup cog = f.cogroup(cp, c.empty(Ex2.class));
                c.stop(cog.r2);
                pOut1.add(cog.r1);
            }
        });
        assertThat(result, is(true));
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

        boolean result = tester.runFlow(new FlowDescription() {
            @Override
            protected void describe() {
                ExOperatorFactory f = new ExOperatorFactory();
                CoreOperatorFactory c = new CoreOperatorFactory();
                Cogroup cog1 = f.cogroup(pIn1, c.empty(Ex2.class));
                c.stop(cog1.r2);
                Branch bra = f.branch(cog1.r1);
                c.stop(bra.cancel);
                c.stop(bra.no);
                Cogroup cog2 = f.cogroup(bra.yes, c.empty(Ex2.class));
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

                Cogroup cog1 = f.cogroup(pIn1, c.empty(Ex2.class));
                c.stop(cog1.r2);
                Branch bra = f.branch(cog1.r1);
                c.stop(bra.cancel);
                c.stop(bra.no);
                Cogroup cog2 = f.cogroup(bra.yes, c.empty(Ex2.class));
                c.stop(cog2.r2);
                pOut1.add(cog2.r1);
            }
        });
        assertThat(result, is(true));
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

    @Override
    protected void describe() {
        ExOperatorFactory f = new ExOperatorFactory();
        CoreOperatorFactory core = new CoreOperatorFactory();
        Update update = f.update(in, 10);
        Cogroup cog1 = f.cogroup(update.out, core.empty(Ex2.class));
        Cogroup cog2 = f.cogroup(update.out, core.empty(Ex2.class));
        out.add(cog1.r1);
        out.add(cog2.r1);
        core.stop(cog1.r2);
        core.stop(cog2.r2);
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

    protected void describe() {
        ExOperatorFactory f = new ExOperatorFactory();
        CoreOperatorFactory core = new CoreOperatorFactory();
        Update update = f.update(in, 10);
        Cogroup cog1 = f.cogroup(update.out, core.empty(Ex2.class));
        Cogroup cog2 = f.cogroup(update.out, core.empty(Ex2.class));
        out.add(cog1.r1);
        out.add(cog2.r1);
        core.stop(cog1.r2);
        core.stop(cog2.r2);
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.util.CoreOperatorFactory.empty()

    protected void describe() {
        ExOperatorFactory f = new ExOperatorFactory();
        CoreOperatorFactory core = new CoreOperatorFactory();
        Update update0 = f.update(in1, 1);
        Update update1 = f.update(core.checkpoint(update0.out), 2);
        Cogroup cog1 = f.cogroup(update1.out, core.empty(Ex2.class));
        core.stop(cog1.r2);
        Cogroup cog2 = f.cogroup(update1.out, core.empty(Ex2.class));
        core.stop(cog2.r2);
        out1.add(cog1.r1);
        out2.add(cog2.r1);
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.