Mercurial > hg > Database > Alice
comparison src/alice/test/codesegment/local/StartCodeSegment.java @ 182:52a1fa5ba38b working
add filp api
author | e095732 |
---|---|
date | Tue, 26 Feb 2013 13:46:18 +0900 |
parents | d7816b9b72e9 |
children | a85ff8dc16c1 |
comparison
equal
deleted
inserted
replaced
181:52dcead81b90 | 182:52a1fa5ba38b |
---|---|
2 | 2 |
3 import alice.codesegment.CodeSegment; | 3 import alice.codesegment.CodeSegment; |
4 | 4 |
5 public class StartCodeSegment extends CodeSegment { | 5 public class StartCodeSegment extends CodeSegment { |
6 | 6 |
7 | |
8 public static long t = 0; | |
7 @Override | 9 @Override |
8 public void run() { | 10 public void run() { |
9 System.out.println("run StartCodeSegment"); | 11 System.out.println("run StartCodeSegment"); |
10 | 12 |
11 /* | 13 /* |
13 cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs. | 15 cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs. |
14 // cs is waiting for local.key1 | 16 // cs is waiting for local.key1 |
15 ods.update("local", "key1", 0); // bind string data to datasegment local.key1 | 17 ods.update("local", "key1", 0); // bind string data to datasegment local.key1 |
16 // this startup TestCodeSegment. | 18 // this startup TestCodeSegment. |
17 */ | 19 */ |
20 t = System.currentTimeMillis(); | |
18 ods.put("local", "key1", 0); | 21 ods.put("local", "key1", 0); |
19 ods.put("local", "key1", 1); | 22 //ods.put("local", "key1", 1); |
20 ods.put("local", "key1", 2); | 23 //ods.put("local", "key1", 2); |
21 ods.put("local", "key1", 3); | 24 //ods.put("local", "key1", 3); |
22 | 25 |
23 new TestCodeSegment(1); | 26 new TestCodeSegment(); |
24 System.out.println("create TestCodeSegment"); | 27 //System.out.println("create TestCodeSegment"); |
25 //ods.update("local", "key1", 0); | 28 //ods.update("local", "key1", 0); |
26 | 29 |
27 } | 30 } |
28 | 31 |
29 | 32 |