Mercurial > hg > Database > Christie
view src/main/java/christie/test/Remote/RemotePutTest.java @ 26:bf8ac57409af
make dg package
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 27 Jan 2018 00:56:13 +0900 |
parents | 76fac42a840e |
children | e29900328fff |
line wrap: on
line source
package christie.test.Remote; import christie.annotation.Take; import christie.codegear.CodeGear; import christie.codegear.CodeGearManager; import christie.datagear.dg.DataGear; public class RemotePutTest extends CodeGear { @Take("hoge") public DataGear<Integer> hoge = new DataGear<>(); @Take("cgmID") public DataGear<Integer> cgmID = new DataGear<>(); @Override protected void run(CodeGearManager cgm) { if (hoge.getData() != 10){ System.out.println(cgmID.getData() + " : " +hoge.getData()); cgm.setup(new RemotePutTest()); getDGM("remote").put("hoge", hoge.getData() + 1); getDGM("remote").put("cgmID", cgm.cgmID); } } }