Mercurial > hg > Members > sugi > javafx
view src/alice/test/topology/aquarium/fx/RegistRoutingTable.java @ 4:50d77513d52e
Platform runLater must use for handling instance from other thread (Not on FX application thread )
author | e095732 |
---|---|
date | Mon, 28 Jan 2013 00:22:17 +0900 |
parents | b997f2ce1a04 |
children | 4e5507afb41f |
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)); System.out.println(routing.toString()); ods.update("local", "list", routing); new RegistRoutingTable(); } }