view src/alice/test/codesegment/remote/beta/RemoteIncrement.java @ 136:bb023f060f2f working

add different version test
author sugi
date Sun, 19 Aug 2012 21:31:21 +0900
parents
children
line wrap: on
line source

package alice.test.codesegment.remote.beta;

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

public class RemoteIncrement extends CodeSegment {

	public Receiver data = ids.create(CommandType.TAKE);
	
	public RemoteIncrement(int index){
		this.data.setKey("remote", "num", index);
	}
	
	@Override
	public void run() {	
		System.out.println(data.val);
		FishPoint fp = this.data.asClass(FishPoint.class);
		fp.setXYZ(fp.getX()+1.0f, fp.getY()+1.0f, fp.getZ()+1.0f);
		new RemoteIncrement(this.data.index);
		ods.put("local", "num", fp);
	}
}