Mercurial > hg > Members > sugi > javafx
view src/alice/test/topology/aquarium/fx/OtherNode.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 OtherNode extends CodeSegment{ private Receiver data1 = ids.create(CommandType.PEEK); private Receiver data2 = ids.create(CommandType.PEEK); public OtherNode(){ data1.setKey("width"); data2.setKey("mynum"); } @Override public void run() { ods.put("local", "list", new RoutingTable("parent")); new RegistRoutingTable(); ods.put("local", "MAXSIZE", 800); ods.put("parent", "member", "ADD_MEM"); ods.put("parent", "CHILD", "ADD"); int startX = data1.asInteger() * data2.asInteger(); ods.put("local", "startX", startX); new SendMessage(); new Share("MAXSIZE"); Aquarium aqua = new Aquarium(); aqua.run(); } }