view src/alice/test/topology/aquarium/fx/RegistRoutingTable.java @ 18:4e5507afb41f

"MAXSIZE" change automatically
author e095732
date Mon, 04 Feb 2013 01:23:24 +0900
parents b997f2ce1a04
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();
		
	}

}