annotate src/alice/test/topology/fish/GetStartX.java @ 39:3155337e754e

add logger
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Fri, 27 Jan 2012 16:57:26 +0900
parents 0b25b48116b6
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 GetStartX 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
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 @Override
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 public void run() {
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 int startX = this.startX.asInteger();
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 System.out.println("GetStartX: " + startX);
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 GetStartX cs = new GetStartX();
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 cs.startX.setKey("local", "startX", this.startX.index);
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 }
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
0b25b48116b6 DistributedFish share width each other (not work)
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 }