Mercurial > hg > Members > tatsuki > Alice
diff src/alice/test/topology/fish/GetStartX.java @ 36:0b25b48116b6
DistributedFish share width each other (not work)
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 20 Jan 2012 18:40:02 +0900 |
parents | |
children | b5daccf36104 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/alice/test/topology/fish/GetStartX.java Fri Jan 20 18:40:02 2012 +0900 @@ -0,0 +1,21 @@ +package alice.test.topology.fish; + +import alice.codesegment.CodeSegment; +import alice.datasegment.CommandType; +import alice.datasegment.Receiver; + +public class GetStartX extends CodeSegment { + + public Receiver startX = ids.create(CommandType.PEEK); + + @Override + public void run() { + int startX = this.startX.asInteger(); + + System.out.println("GetStartX: " + startX); + + GetStartX cs = new GetStartX(); + cs.startX.setKey("local", "startX", this.startX.index); + } + +}