view src/alice/test/dpp/codesegment/StartCodeSegment.java @ 4:2794091a7058

modified CodeSegment
author one
date Sun, 25 Nov 2012 17:07:45 +0900
parents cd80e302a3c4
children bfaaebb50a2e
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"));
		ods.update("local", "fork1", new Fork("fork1"));
		ods.update("local", "fork2", new Fork("fork2"));

	}

}