Mercurial > hg > Members > sugi > javafx
view src/alice/test/topology/aquarium/fx/RegistRoutingTable.java @ 23:b77c2c6db854
minor change
author | e095732 |
---|---|
date | Mon, 01 Jul 2013 20:02:03 +0900 |
parents | 4e5507afb41f |
children |
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 RegistRoutingTable extends CodeSegment{ private Receiver rdata = ids.create(CommandType.PEEK); private Receiver data = ids.create(CommandType.TAKE); public RegistRoutingTable(){ rdata.setKey("list"); data.setKey("member"); } @Override public void run() { RoutingTable routing = rdata.asClass(RoutingTable.class); routing.table.add(new RoutingData(data.from)); ods.update("local", "list", routing); new RegistRoutingTable(); } }