Mercurial > hg > Database > Alice
view src/main/java/alice/test/codesegment/remote/compress/TestCompressReceive.java @ 597:f5322e53bbf6 dispose
add TestCompressReceive
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 10 Feb 2016 20:32:25 +0900 |
parents | |
children |
line wrap: on
line source
package alice.test.codesegment.remote.compress; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class TestCompressReceive extends CodeSegment { // create input datasegment arg1 Receiver info = ids.create(CommandType.TAKE); int num; public TestCompressReceive(int num){ this.num = num; info.setKey("data"); } @Override public void run() { ods.flip("remote", "data", info); if (num == 0) { System.exit(0); return; } TestCompressReceive cs = new TestCompressReceive(--num); } }