Mercurial > hg > Database > jungle-network
view src/jungle/test/codesegment/remote/HostCodeSegment.java @ 40:7e94de2d6bc0
add PutAnotherLogCodeSegment, PutHostLogCodeSegment
author | one |
---|---|
date | Tue, 09 Jul 2013 17:32:06 +0900 |
parents | 10359a815068 |
children |
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--"); System.out.println("index : "+ arg1.index); System.out.println("from : "+ arg1.from); 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"); */ } }