109
|
1 package alice.test.topology.fishmodel.beta;
|
|
2
|
|
3 import alice.codesegment.CodeSegment;
|
|
4 import alice.datasegment.CommandType;
|
|
5 import alice.datasegment.Receiver;
|
|
6
|
|
7 public class CheckLocalIndex extends CodeSegment {
|
|
8
|
|
9 private Receiver data = ids.create(CommandType.PEEK);
|
|
10 String key;
|
|
11
|
|
12 public CheckLocalIndex(String key, int index){
|
|
13 this.key = key;
|
|
14 this.data.setKey("local", this.key, index);
|
|
15 }
|
|
16
|
|
17 @Override
|
|
18 public void run() {
|
|
19 new Update(this.key, this.data);
|
|
20
|
|
21 }
|
|
22
|
|
23 }
|