view src/alice/test/topology/ring/RingMessagePassing.java @ 212:b5daccf36104 working

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

package alice.test.topology.ring;

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

public class RingMessagePassing extends CodeSegment {

	public Receiver ds1 = ids.create(CommandType.TAKE);

	@Override
	public void run() {
		ods.put("right", "c", this.ds1.data.val);
		RingMessagePassing cs = new RingMessagePassing();
		cs.ds1.setKey("c");
	}

}