Mercurial > hg > Papers > 2012 > sugi-prosym
annotate Paper/source/TestCodeSegment.java @ 7:b04de6f70085
add images and source
author | e095732 <e095732@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 19 Nov 2012 17:58:57 +0900 |
parents | |
children |
rev | line source |
---|---|
7 | 1 public class TestCodeSegment extends CodeSegment { |
2 Receiver input1 = ids.create(CommandType.PEEK); | |
3 | |
4 @Override public void run() { | |
5 System.out.println("index = " + input1.index); | |
6 System.out.println("data = " + input1.val); | |
7 | |
8 if (input1.index == 10) System.exit(0); | |
9 | |
10 TestCodeSegment cs = new TestCodeSegment(); | |
11 cs.input1.setKey("local", "key1", input1.index); | |
12 ods.update("local", "key1", "Stringā£data"); | |
13 } | |
14 } |