Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/CreateConnectionList.java @ 552:767d93626b88 dispose
add compressed to DSM name
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2015 18:33:23 +0900 |
parents | aefbe41fcf12 |
children |
line wrap: on
line source
package alice.topology.node; import java.util.List; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class CreateConnectionList extends CodeSegment { private Receiver info = ids.create(CommandType.TAKE); // connection List private Receiver info1 = ids.create(CommandType.TAKE); // connection names public CreateConnectionList() { info.setKey("compressedlocal", "_CLIST"); info1.setKey("compressedlocal", "cMember"); } @Override public void run() { @SuppressWarnings("unchecked") List<String> cList = info.asClass(List.class); String name = info1.asString(); cList.add(name); ods.update("compressedlocal", info.key, cList); } }