view src/alice/test/topology/fish/GetStartX.java @ 217:b5c642ba998e working

change as** method and remove "local" key in TEST
author sugi
date Wed, 27 Mar 2013 20:02:38 +0900
parents fec0726bb126
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);
	}

}