view src/main/java/alice/test/topology/fish/GetStartX.java @ 345:8f71c3e6f11d

Change directory structure Maven standard
author sugi
date Wed, 16 Apr 2014 18:26:07 +0900
parents
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);
	}

}