view src/alice/test/topology/fish/StartStartX.java @ 212:b5daccf36104 working

add Receiver state pattern
author one
date Wed, 27 Mar 2013 17:30:52 +0900
parents 0b25b48116b6
children fec0726bb126
line wrap: on
line source

package alice.test.topology.fish;

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

public class StartStartX extends CodeSegment {
	
	public Receiver width = ids.create(CommandType.PEEK);
	
	@Override
	public void run() {
		ods.update("local", "startX", 0);
		StartStartX cs = new StartStartX();
		cs.width.setKey("local", "width", this.width.data.index);
	}

}