Mercurial > hg > Database > Alice
annotate src/main/java/alice/topology/node/CreateConnectionList.java @ 599:3284428f525e dispose
add MetaCodeSegment & MetaDSM
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 15 Feb 2016 01:16:35 +0900 |
parents | aefbe41fcf12 |
children | 8a9fd716c335 |
rev | line source |
---|---|
416 | 1 package alice.topology.node; |
2 | |
3 import java.util.List; | |
4 | |
5 import alice.codesegment.CodeSegment; | |
599
3284428f525e
add MetaCodeSegment & MetaDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
419
diff
changeset
|
6 import alice.codesegment.MetaCodeSegment; |
416 | 7 import alice.datasegment.CommandType; |
8 import alice.datasegment.Receiver; | |
9 | |
599
3284428f525e
add MetaCodeSegment & MetaDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
419
diff
changeset
|
10 public class CreateConnectionList extends MetaCodeSegment { |
419 | 11 private Receiver info = ids.create(CommandType.TAKE); // connection List |
12 private Receiver info1 = ids.create(CommandType.TAKE); // connection names | |
13 | |
14 public CreateConnectionList() { | |
15 info.setKey("_CLIST"); | |
16 info1.setKey("cMember"); | |
17 } | |
416 | 18 |
419 | 19 @Override |
20 public void run() { | |
21 @SuppressWarnings("unchecked") | |
22 List<String> cList = info.asClass(List.class); | |
23 String name = info1.asString(); | |
24 cList.add(name); | |
25 ods.update(info.key, cList); | |
26 | |
27 } | |
416 | 28 |
29 } |