Mercurial > hg > Database > Alice
view src/main/java/alice/test/codesegment/remote/compress/TestCompress.java @ 595:64f1762e2942 dispose
minor fix
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 10 Feb 2016 19:42:13 +0900 |
parents | 74495205ae5d |
children | 2b8e6b8b5d20 |
line wrap: on
line source
package alice.test.codesegment.remote.compress; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; /** * Created by e125769 on 2/9/16. */ public class TestCompress extends CodeSegment{ // create input datasegment arg1 Receiver info = ids.create(CommandType.TAKE); Receiver info2 = ids.create(CommandType.PEEK); int num; public TestCompress(int num){ this.num = num; info.setKey("data"); info2.setKey("time"); } @Override public void run() { if (num == 0) { long time = System.currentTimeMillis(); System.out.println("time: " + (time - info2.asClass(long.class))); return; } TestCompress cs = new TestCompress(--num); ods.flip("remote", "data", info); } }