Mercurial > hg > Database > Alice
view src/alice/test/topology/share/Increment.java @ 103:37f3483a869b working
remove bug from "CheckParentIndex" and "CheckLocalIndex"
author | sugi |
---|---|
date | Mon, 02 Jul 2012 11:16:01 +0900 |
parents | a5fce70380e8 |
children |
line wrap: on
line source
package alice.test.topology.share; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class Increment extends CodeSegment { Receiver nowX = ids.create(CommandType.PEEK); public Increment(){ nowX.setKey("local","fish",this.nowX.index); } @Override public void run(){ System.out.println("value "+this.nowX.asInteger()); new Increment(); ods.update("local", "fish", this.nowX.asInteger()+1); } }