Mercurial > hg > Members > nobuyasu > Alice > DPPAlice
changeset 10:60539f5d514e
modified Fork.TABLE
author | one |
---|---|
date | Sun, 25 Nov 2012 17:53:20 +0900 |
parents | 247105822f8e |
children | 37b981eb4533 |
files | src/alice/test/dpp/model/Fork.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/test/dpp/model/Fork.java Sun Nov 25 17:45:43 2012 +0900 +++ b/src/alice/test/dpp/model/Fork.java Sun Nov 25 17:53:20 2012 +0900 @@ -9,6 +9,8 @@ private String owner; private State state; + private final String TABLE = "TABLE"; + @Message public enum State { ON_THE_TABLE, @@ -18,7 +20,7 @@ public Fork(String n) { forkName = n; - owner = Table.TABLE; + owner = TABLE; state = State.ON_THE_TABLE; } @@ -43,7 +45,7 @@ public boolean onTheTable(Philosophy phil) { if (owner.equals(phil.getName())) { state = State.ON_THE_TABLE; - owner = Table.TABLE; + owner = TABLE; return true; } else { return false;