Mercurial > hg > Database > Alice
diff src/main/java/alice/test/topology/aquarium/TakePnum.java @ 419:aefbe41fcf12 dispose
change tab to space
author | sugi |
---|---|
date | Tue, 15 Jul 2014 16:00:22 +0900 |
parents | 8f71c3e6f11d |
children | 6e304a7a60e7 |
line wrap: on
line diff
--- a/src/main/java/alice/test/topology/aquarium/TakePnum.java Tue Jul 15 06:15:53 2014 +0900 +++ b/src/main/java/alice/test/topology/aquarium/TakePnum.java Tue Jul 15 16:00:22 2014 +0900 @@ -5,20 +5,20 @@ import alice.datasegment.Receiver; public class TakePnum extends CodeSegment { - // this CodeSegment has bug - - private Receiver pnum = ids.create(CommandType.TAKE); - private Receiver mynum; - - public TakePnum(Receiver data){ - this.pnum.setKey("parent", "num"); - this.mynum = data; - } + // this CodeSegment has bug + + private Receiver pnum = ids.create(CommandType.TAKE); + private Receiver mynum; - @Override - public void run() { - ods.update("parent", "num", - this.pnum.asInteger()+this.mynum.asInteger()); - } + public TakePnum(Receiver data){ + this.pnum.setKey("parent", "num"); + this.mynum = data; + } + + @Override + public void run() { + ods.update("parent", "num", + this.pnum.asInteger()+this.mynum.asInteger()); + } }