Mercurial > hg > Members > sugi > javafx
view src/alice/test/topology/aquarium/fx/Share.java @ 23:b77c2c6db854
minor change
author | e095732 |
---|---|
date | Mon, 01 Jul 2013 20:02:03 +0900 |
parents | e027d228c455 |
children | 5902144dc286 |
line wrap: on
line source
package alice.test.topology.aquarium.fx; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class Share extends CodeSegment { private Receiver data = ids.create(CommandType.PEEK); private Receiver list = ids.create(CommandType.PEEK); public Share(String key) { list.setKey("list"); data.setKey(key); } public Share(String key, int index) { list.setKey("list"); data.setKey(key, index); } @Override public void run() { RoutingTable rt = this.list.asClass(RoutingTable.class); for (RoutingData r : rt.table) { if (!r.name.equals(data.from)) { ods.update(r.name, data.key, data.val); } } new Share(data.key,data.index); } }