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 PeekStartX extends CodeSegment {
|
|
8
|
419
|
9 public Receiver startX = ids.create(CommandType.PEEK);
|
|
10 public int index;
|
|
11
|
|
12 public PeekStartX(int index) {
|
|
13 this.index = index;
|
|
14 }
|
|
15
|
|
16 @Override
|
|
17 public void run() {
|
|
18 int startX = this.startX.asInteger();
|
|
19 AssignStartX cs = new AssignStartX(startX, this.startX.index);
|
|
20 cs.routing.setKey("routing", this.startX.index);
|
|
21 }
|
345
|
22
|
|
23 }
|