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 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 System.out.println("send widths: " + width);
|
|
17
|
|
18 SendWidth cs = new SendWidth();
|
|
19 cs.width.setKey("width", this.width.index);
|
|
20 }
|
|
21
|
|
22 }
|