Mercurial > hg > Members > nobuyasu > jungle-network
view src/test/java/alice/codesegment/remote/HostCodeSegment.java @ 82:60d28fedcbf2
Remove unnecessary files and move some files
author | one |
---|---|
date | Wed, 16 Oct 2013 20:53:44 +0900 |
parents | src/jungle/test/codesegment/remote/HostCodeSegment.java@7e94de2d6bc0 |
children | f9e29a52efd3 |
line wrap: on
line source
package test.java.alice.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"); */ } }