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 GetStartX extends CodeSegment {
|
|
8
|
|
9 public Receiver startX = ids.create(CommandType.PEEK);
|
|
10
|
|
11 @Override
|
|
12 public void run() {
|
|
13 int startX = this.startX.asInteger();
|
|
14
|
|
15 System.out.println("GetStartX: " + startX);
|
|
16
|
|
17 GetStartX cs = new GetStartX();
|
|
18 cs.startX.setKey("local", "startX", this.startX.index);
|
|
19 }
|
|
20
|
|
21 }
|