Mercurial > hg > Papers > 2015 > nozomi-sigos
view paper/source/TestCodeSegment.java @ 0:0127effb8fcd
first commit
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 05 May 2015 15:36:41 +0900 |
parents | |
children |
line wrap: on
line source
public class TestCodeSegment extends CodeSegment { private Receiver input1 = ids.create(CommandType.TAKE); public TestCodeSegment() { input1.setKey("local", "cnt"); } @Override public void run() { int count = input1.asInteger(); System.out.println("data = " + count); if (count == 10) System.exit(0); new TestCodeSegment(); ods.update("local", "cnt", ++count); } }