Mercurial > hg > Database > Alice
view src/alice/test/codesegment/remote/RemoteIncrement.java @ 217:b5c642ba998e working
change as** method and remove "local" key in TEST
author | sugi |
---|---|
date | Wed, 27 Mar 2013 20:02:38 +0900 |
parents | b5daccf36104 |
children |
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); /** * 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(); cs.num.setKey("remote", "num"); ods.put("local", "num", num); } }