view src/main/java/alice/test/topology/fish/GetStartX.java @ 393:38021fceabef draft multicast

test commit
author tatsuki
date Tue, 17 Jun 2014 17:39:47 +0900
parents 8f71c3e6f11d
children
line wrap: on
line source

package alice.test.topology.fish;

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

public class GetStartX extends CodeSegment {

	public Receiver startX = ids.create(CommandType.PEEK);
	
	@Override
	public void run() {
		int startX = this.startX.asInteger();
		
		System.out.println("GetStartX: " + startX);
		
		GetStartX cs = new GetStartX();
		cs.startX.setKey("local", "startX", this.startX.index);
	}

}