Mercurial > hg > Database > jungle-network
view src/jungle/test/codesegment/remote/HostCodeSegment.java @ 39:10359a815068
add alice.jungle.codesegment.remote
author | one |
---|---|
date | Tue, 09 Jul 2013 15:10:06 +0900 |
parents | |
children | 7e94de2d6bc0 |
line wrap: on
line source
package jungle.test.codesegment.remote; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class HostCodeSegment extends CodeSegment { Receiver arg1 = ids.create(CommandType.TAKE); public void run() { System.out.println("--HostCodeSegment--"); int num = arg1.asInteger(); System.out.println("num : "+ num); num++; ods.put("local", "num", num); System.exit(0); /* HostCodeSegment cs = new HostCodeSegment(); cs.arg1.setKey("local","num"); */ } }