Mercurial > hg > Papers > 2016 > nozomi-thesis
view paper/source/TestCodeSegment.java @ 3:a97aa059242f
add images & sources
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 05 Feb 2016 21:00: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); count++; if (count == 10) System.exit(0); new TestCodeSegment(); ods.put("local", "cnt", count); } }