diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/source/TestCodeSegment.java	Mon Nov 19 17:58:57 2012 +0900
@@ -0,0 +1,14 @@
+public class TestCodeSegment extends CodeSegment { 
+    Receiver input1 = ids.create(CommandType.PEEK);
+    
+    @Override public void run() {
+	System.out.println("index = " + input1.index);
+	System.out.println("data = " + input1.val);
+	
+	if (input1.index == 10) System.exit(0);
+	
+	TestCodeSegment cs = new TestCodeSegment(); 
+	cs.input1.setKey("local", "key1", input1.index);
+	ods.update("local", "key1", "Stringā£data");
+    }
+}
\ No newline at end of file