416
|
1 package alice.topology.node;
|
|
2
|
|
3 import java.util.List;
|
|
4
|
|
5 import alice.codesegment.CodeSegment;
|
|
6 import alice.datasegment.CommandType;
|
|
7 import alice.datasegment.Receiver;
|
|
8
|
|
9 public class CreateConnectionList extends CodeSegment {
|
419
|
10 private Receiver info = ids.create(CommandType.TAKE); // connection List
|
|
11 private Receiver info1 = ids.create(CommandType.TAKE); // connection names
|
|
12
|
|
13 public CreateConnectionList() {
|
|
14 info.setKey("_CLIST");
|
|
15 info1.setKey("cMember");
|
|
16 }
|
416
|
17
|
419
|
18 @Override
|
|
19 public void run() {
|
|
20 @SuppressWarnings("unchecked")
|
|
21 List<String> cList = info.asClass(List.class);
|
|
22 String name = info1.asString();
|
|
23 cList.add(name);
|
|
24 ods.update(info.key, cList);
|
|
25
|
|
26 }
|
416
|
27
|
|
28 }
|