171
|
1 package alice.test.topology.aquarium;
|
|
2
|
|
3 import alice.codesegment.CodeSegment;
|
|
4 import alice.datasegment.CommandType;
|
|
5 import alice.datasegment.Receiver;
|
|
6
|
|
7 public class SendMaxsize extends CodeSegment{
|
|
8
|
|
9 private Receiver max = ids.create(CommandType.PEEK);
|
|
10
|
|
11 public SendMaxsize(int index){
|
|
12 this.max.setKey("local", "num", index);
|
|
13 }
|
|
14
|
|
15 @Override
|
|
16 public void run() {
|
212
|
17 int size = max.data.asInteger(max);
|
171
|
18 ods.update("local","maxsize",size);
|
214
|
19 new SendMaxsize(this.max.index);
|
171
|
20 }
|
|
21
|
|
22 }
|