Mercurial > hg > Papers > 2017 > suruga-sigos
view paper/source/TestCodeSegment.java @ 22:f55662d3643f
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 23 Apr 2018 19:50:25 +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); } }