comparison Paper/source/TestCodeSegment.java @ 9:25a3002cb1e6

add image and source files
author e095732 <e095732@ie.u-ryukyu.ac.jp>
date Tue, 20 Nov 2012 18:32:20 +0900
parents
children
comparison
equal deleted inserted replaced
8:602cf60d3c55 9:25a3002cb1e6
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 }