Mercurial > hg > Database > Alice
view src/alice/test/topology/aquarium/AddRoutingTable.java @ 217:b5c642ba998e working
change as** method and remove "local" key in TEST
author | sugi |
---|---|
date | Wed, 27 Mar 2013 20:02:38 +0900 |
parents | fec0726bb126 |
children |
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); private RoutingTable routing; public AddRoutingTable(RoutingTable routing,int index){ this.routing = routing; this.mail.setKey("member", index); } @Override public void run() { //System.out.println("add "+this.mail.from); routing.table.add(new Routing(this.mail.from)); ods.update("list", this.routing); new AddRoutingTable(this.routing, this.mail.index); } }