comparison src/alice/test/topology/fish/SendWidth.java @ 35:ac3b48c5f4da

share width each other with tree
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Fri, 20 Jan 2012 04:00:12 +0900
parents
children 0b25b48116b6
comparison
equal deleted inserted replaced
34:ca079a730d0b 35:ac3b48c5f4da
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 SendWidth extends CodeSegment {
8
9 Receiver width = ids.create(CommandType.PEEK);
10
11 @Override
12 public void run() {
13 int width = this.width.asInteger();
14 ods.put("parent", "widths", width);
15
16 SendWidth cs = new SendWidth();
17 cs.width.setKey("local", "width", this.width.index);
18 }
19
20 }