comparison source/TestCodeSegment.java @ 2:ddd5a624bb7a

add image flies
author sugi
date Mon, 01 Apr 2013 01:52:11 +0900
parents
children
comparison
equal deleted inserted replaced
1:484bf45ca3ee 2:ddd5a624bb7a
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 }