# HG changeset patch # User one # Date 1353833600 -32400 # Node ID 60539f5d514eb070053204b3020788419762cf70 # Parent 247105822f8e82c5d604c6103b165e28b7ff4b90 modified Fork.TABLE diff -r 247105822f8e -r 60539f5d514e src/alice/test/dpp/model/Fork.java --- 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;