Mercurial > hg > Members > nobuyasu > Alice > DPPAlice
changeset 3:6b3f0f87a36b
add alice.test.dpp.model
author | one |
---|---|
date | Sun, 25 Nov 2012 02:38:09 +0900 |
parents | cd80e302a3c4 |
children | 2794091a7058 |
files | src/alice/test/dpp/codesegment/ThinkCodeSegment.java src/alice/test/dpp/model/Fork.java |
diffstat | 2 files changed, 36 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/alice/test/dpp/codesegment/ThinkCodeSegment.java Sun Nov 25 02:38:09 2012 +0900 @@ -0,0 +1,28 @@ +package alice.test.dpp.codesegment; + +import alice.codesegment.CodeSegment; +import alice.datasegment.CommandType; +import alice.datasegment.Receiver; +import alice.test.dpp.model.Philosophy; + +public class ThinkCodeSegment extends CodeSegment { + + Philosophy phil; + Receiver arg1 = ids.create(CommandType.TAKE); + Receiver arg2 = ids.create(CommandType.TAKE); + + public ThinkCodeSegment(Philosophy p) { + phil = p; + arg1.setKey(p.getLeftFork()); + arg2.setKey(p.getRightFork()); + } + + + @Override + public void run() { + + + + } + +}