view src/main/java/christie/test/TestLocal/TestCodeGear.java @ 272:b592fe1d4a4e default tip

create example Attendance
author matac42 <matac@cr.ie.u-ryukyu.ac.jp>
date Thu, 01 Jul 2021 20:41:07 +0900
parents 4479d37c8e53
children
line wrap: on
line source

package christie.test.TestLocal;

import christie.annotation.Peek;
import christie.annotation.Take;
import christie.codegear.CodeGear;
import christie.codegear.CodeGearManager;
import christie.datagear.dg.DataGear;


/**
 * LocalDGMからPeekとTakeを10回行うテスト
 * Created by e125769 on 12/7/17.
 */
public class TestCodeGear extends CodeGear {

    @Peek
    String hoge;

    @Take
    int count;

    public void run(CodeGearManager cgm){
        System.out.println(count + " : " + hoge);

        if (count != 10){
            cgm.setup(new TestCodeGear());
            put("count", count + 1);
        }
    }

}