Mercurial > hg > Members > tatsuki > Alice
view src/alice/test/topology/aquarium/AddRoutingTable.java @ 134:53aff28cde6b working
change package
author | sugi |
---|---|
date | Wed, 15 Aug 2012 17:11:57 +0900 |
parents | src/alice/test/topology/fishmodel/beta/AddRoutingTable.java@ba64a9d76e70 |
children | ed78890ed8e9 |
line wrap: on
line source
package alice.test.topology.aquarium; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class AddRoutingTable extends CodeSegment { public Receiver mail = ids.create(CommandType.PEEK); RoutingTable routing; public AddRoutingTable(RoutingTable routing,int index){ this.routing = routing; this.mail.setKey("local", "member",index); } @Override public void run() { System.out.println("add "+this.mail.from); routing.table.add(new Routing(this.mail.from)); ods.update("local", "list", this.routing); new AddRoutingTable(this.routing,this.mail.index); } }