Mercurial > hg > Database > Alice
comparison src/alice/test/codesegment/local/StartCodeSegment.java @ 97:df786bf8f036 working
add FishPoint.java and Test
author | sugi |
---|---|
date | Tue, 26 Jun 2012 16:48:09 +0900 |
parents | a3a2605e16a2 |
children | a8f77957a477 |
comparison
equal
deleted
inserted
replaced
96:a5fce70380e8 | 97:df786bf8f036 |
---|---|
1 package alice.test.codesegment.local; | 1 package alice.test.codesegment.local; |
2 | 2 |
3 import alice.codesegment.CodeSegment; | 3 import alice.codesegment.CodeSegment; |
4 import alice.test.topology.movement.FishPoint; | |
4 | 5 |
5 public class StartCodeSegment extends CodeSegment { | 6 public class StartCodeSegment extends CodeSegment { |
6 | 7 |
7 @Override | 8 @Override |
8 public void run() { | 9 public void run() { |
9 System.out.println("run StartCodeSegment"); | 10 System.out.println("run StartCodeSegment"); |
10 | 11 /* |
11 TestCodeSegment cs = new TestCodeSegment(); | 12 TestCodeSegment cs = new TestCodeSegment(); |
12 cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs. | 13 cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs. |
13 // cs is waiting for local.key1 | 14 // cs is waiting for local.key1 |
15 | |
16 */ | |
17 new TestCodeSegment(); | |
14 System.out.println("create TestCodeSegment"); | 18 System.out.println("create TestCodeSegment"); |
15 | 19 |
16 ods.update("local", "key1", "String data"); // bind string data to datasegment local.key1 | 20 ods.update("local", "key1", new FishPoint()); // bind string data to datasegment local.key1 |
17 // this startup TestCodeSegment. | 21 // this startup TestCodeSegment. |
18 } | 22 } |
19 | 23 |
20 } | 24 } |