view src/alice/test/topology/fish/PeekStartX.java @ 39:3155337e754e

add logger
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Fri, 27 Jan 2012 16:57:26 +0900
parents 0b25b48116b6
children b5daccf36104
line wrap: on
line source

package alice.test.topology.fish;

import alice.codesegment.CodeSegment;
import alice.datasegment.CommandType;
import alice.datasegment.Receiver;

public class PeekStartX extends CodeSegment {

	public Receiver startX = ids.create(CommandType.PEEK);
	public int index;
	
	public PeekStartX(int index) {
		this.index = index;
	}
	
	@Override
	public void run() {
		int startX = this.startX.asInteger();
		AsignStartX cs = new AsignStartX(startX, this.startX.index);
		cs.routing.setKey("local", "routing", this.startX.index);
	}

}