annotate src/alice/test/topology/fish/PeekStartX.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 package alice.test.topology.fish;
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 import alice.datasegment.CommandType;
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 import alice.datasegment.Receiver;
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 public class PeekStartX extends CodeSegment {
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 public Receiver startX = ids.create(CommandType.PEEK);
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 public int index;
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 public PeekStartX(int index) {
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 this.index = index;
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 }
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 @Override
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 public void run() {
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 int startX = this.startX.asInteger();
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 AsignStartX cs = new AsignStartX(startX, this.startX.index);
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 cs.routing.setKey("local", "routing", this.startX.index);
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 }
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 }