view src/alice/test/dpp/codesegment/StartCodeSegment.java @ 13:888388e47fe5

modified ThinkCodeSegment. remove random, sleep
author one
date Wed, 28 Nov 2012 16:21:34 +0900
parents bfaaebb50a2e
children 33727db069c2
line wrap: on
line source

package alice.test.dpp.codesegment;

import alice.codesegment.CodeSegment;
import alice.test.dpp.model.Fork;
import alice.test.dpp.model.Philosophy;

public class StartCodeSegment extends CodeSegment {

	@Override
	public void run() {
		System.out.println("run StartCodeSegment");
		new ThinkCodeSegment(new Philosophy("phil1","fork1","fork2"));
		new ThinkCodeSegment(new Philosophy("phil2","fork2","fork3"));
		new ThinkCodeSegment(new Philosophy("phil3","fork3","fork1"));

		ods.update("local", "fork1", new Fork("fork1"));
		ods.update("local", "fork2", new Fork("fork2"));
		ods.update("local", "fork3", new Fork("fork3"));

	}

}