Mercurial > hg > Members > nobuyasu > Alice > DPPAlice
view src/alice/test/dpp/codesegment/philosophy/StartCodeSegment.java @ 25:f77f0bb99f35
modify each CodeSegment
author | one |
---|---|
date | Tue, 15 Jan 2013 16:41:57 +0900 |
parents | da62aa1f4d87 |
children |
line wrap: on
line source
package alice.test.dpp.codesegment.philosophy; import alice.codesegment.CodeSegment; import alice.test.dpp.datasegment.Fork; import alice.test.dpp.datasegment.Philosophy; public class StartCodeSegment extends CodeSegment { @Override public void run() { System.out.println("run StartCodeSegment"); new ThinkCodeSegment("phil1"); new ThinkCodeSegment("phil2"); new ThinkCodeSegment("phil3"); ods.update("local", "phil1", new Philosophy("phil1","fork1","fork2")); ods.update("local", "phil2", new Philosophy("phil2","fork2","fork3")); ods.update("local", "phil3", 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")); } }