Mercurial > hg > Database > Alice
view src/main/java/alice/test/codesegment/remote/RemoteIncrement.java @ 572:ef3dc954eb43 dispose
delete serializeFlag
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 13 Dec 2015 23:49:46 +0900 |
parents | d2f7d02c4976 |
children | fa3c8424dea4 |
line wrap: on
line source
package alice.test.codesegment.remote; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class RemoteIncrement extends CodeSegment { public Receiver num = ids.create(CommandType.TAKE);//true でCompressedDSMからtake /** * Increment DataSegment value up to 10 */ @Override public void run() { int num = this.num.asInteger(); System.out.println("[CodeSegment] " + num++); if (num == 10) System.exit(0); RemoteIncrement cs = new RemoteIncrement(); ods.put("local", "num", num); cs.num.setKey("compressedremote", "num"); } }