Mercurial > hg > Database > Alice
annotate src/main/java/alice/test/topology/fish/PeekStartX.java @ 547:e91a574b69de dispose
remove index
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Aug 2015 16:15:17 +0900 |
parents | aefbe41fcf12 |
children |
rev | line source |
---|---|
345 | 1 package alice.test.topology.fish; |
2 | |
3 import alice.codesegment.CodeSegment; | |
4 import alice.datasegment.CommandType; | |
5 import alice.datasegment.Receiver; | |
6 | |
7 public class PeekStartX extends CodeSegment { | |
8 | |
419 | 9 public Receiver startX = ids.create(CommandType.PEEK); |
10 | |
11 | |
12 @Override | |
13 public void run() { | |
14 int startX = this.startX.asInteger(); | |
547 | 15 AssignStartX cs = new AssignStartX(startX); |
16 cs.routing.setKey("routing", this); | |
419 | 17 } |
345 | 18 |
19 } |