comparison src/alice/test/codesegment/local/StartCodeSegment.java @ 323:d746c4486287

work
author one
date Mon, 23 Dec 2013 17:13:16 +0900
parents f1f0638861ab
children
comparison
equal deleted inserted replaced
322:4b5bf9cf1505 323:d746c4486287
6 6
7 @Override 7 @Override
8 public void run() { 8 public void run() {
9 System.out.println("run StartCodeSegment"); 9 System.out.println("run StartCodeSegment");
10 10
11 //TestCodeSegment cs = new TestCodeSegment(); 11 TestCodeSegment cs = new TestCodeSegment();
12 //cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs. 12 cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs.
13 // cs is waiting for local.key1 13 // cs is waiting for local.key1
14 System.out.println("create TestCodeSegment"); 14 System.out.println("create TestCodeSegment");
15 15
16 ods.update("local", "key1", "String data"); // bind string data to datasegment local.key1 16 ods.update("local", "key1", "String data"); // bind string data to datasegment local.key1
17 // this startup TestCodeSegment. 17 // this startup TestCodeSegment.
18
19 SingletonTestCodeSegment cs1 = SingletonTestCodeSegment.getInstance();
20 cs1.arg1.setKey("key2");
21
22 // DataSegment.get("local").update
23 ods.update("local", "key2", "String data");
24 } 18 }
25 19
26 } 20 }