Mercurial > hg > Database > Alice
view src/main/java/alice/test/codesegment/local/StartCodeSegment.java @ 545:074c6716f906 dispose
add AliceDeamon on paramater. not working TestLocalAlice
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 04 Aug 2015 16:24:59 +0900 |
parents | aefbe41fcf12 |
children | 15eeb439830c |
line wrap: on
line source
package alice.test.codesegment.local; import alice.codesegment.CodeSegment; import alice.daemon.AliceDaemon; public class StartCodeSegment extends CodeSegment { @Override public void run() { System.out.println("run StartCodeSegment"); TestCodeSegment cs = new TestCodeSegment(); cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs. // cs is waiting for local.key1 System.out.println("create TestCodeSegment"); ods.update("local", "key1", "String data"); // bind string data to datasegment local.key1 // this startup TestCodeSegment. } }