annotate src/alice/test/topology/fish/PeekStartX.java @ 283:b90d03c6cb00

Fix spell
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Fri, 18 Oct 2013 02:43:21 +0900
parents b5c642ba998e
children
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() {
217
b5c642ba998e change as** method and remove "local" key in TEST
sugi
parents: 214
diff changeset
18 int startX = this.startX.asInteger();
283
b90d03c6cb00 Fix spell
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 217
diff changeset
19 AssignStartX cs = new AssignStartX(startX, this.startX.index);
217
b5c642ba998e change as** method and remove "local" key in TEST
sugi
parents: 214
diff changeset
20 cs.routing.setKey("routing", this.startX.index);
36
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 }