view src/alice/test/topology/aquarium/fx/OtherNode.java @ 13:5f9709c253f7

add width
author e095732
date Wed, 30 Jan 2013 17:57:25 +0900
parents bf24d5200770
children e027d228c455
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("parent", "member", "ADD_MEM");
		
		int startX = data1.asInteger() * data2.asInteger(); 
		ods.put("local", "startX", startX);
		
		ods.put("local", "objCnt", 5);
		Aquarium aqua = new Aquarium();
		aqua.run();
	}

}