Mercurial > hg > Database > Alice
comparison src/main/java/alice/test/codesegment/local/TestCodeSegment.java @ 548:b44a2bf16eb3 dispose
add IDS ODS constructor & work TestLocalAlice
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 25 Aug 2015 19:54:30 +0900 |
parents | e91a574b69de |
children | 9f577ff4f7ea |
comparison
equal
deleted
inserted
replaced
547:e91a574b69de | 548:b44a2bf16eb3 |
---|---|
13 | 13 |
14 @Override | 14 @Override |
15 public void run() { | 15 public void run() { |
16 System.out.println("in TestCodeSegment"); | 16 System.out.println("in TestCodeSegment"); |
17 System.out.println("type = " + arg1.type); | 17 System.out.println("type = " + arg1.type); |
18 //System.out.println("index = " + arg1.index); | |
19 int num = arg1.asInteger(); | 18 int num = arg1.asInteger(); |
20 System.out.println("data = " + num); | 19 System.out.println("data = " + num); |
21 System.out.println(((Value)arg1.getVal()).getType());//←伝統。なくてもいい。 | |
22 | 20 |
23 if (num++ == 10) { | 21 if (num++ == 10) { |
24 System.exit(0); | 22 System.exit(0); |
25 return; | 23 return; |
26 } | 24 } |
27 | 25 |
28 TestCodeSegment cs = new TestCodeSegment(); | 26 TestCodeSegment cs = new TestCodeSegment(); |
29 //cs.ids.setAliceDaemon(this); | |
30 cs.arg1.setKey("key1", this);//Receiverに値をpeekしてくる | 27 cs.arg1.setKey("key1", this);//Receiverに値をpeekしてくる |
31 | 28 |
32 // DataSegment.get("local").update | 29 // DataSegment.get("local").update |
33 ods.update("local", "key1", num); | 30 ods.update("local", "key1", num); |
34 } | 31 } |