|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Puzzle
Interface representing a logic puzzle.
Method Summary | |
---|---|
boolean |
isMutable()
Checks whether this puzzle can be modified. |
Puzzle |
makeImmutableCopy()
Creates a copy of this puzzle which cannot be modified further. |
java.lang.String |
toString()
Generates a String representing the puzzle. |
Method Detail |
---|
boolean isMutable()
true
iff this puzzle is mutablePuzzle makeImmutableCopy()
Puzzle
is used to construct a State
or Solver
, the constructer should call this method to get an
immutable copy. Copies created by this method should return false
to isMutable()
and throw ImmutablePuzzleException
when a method attempts to modify them.
java.lang.String toString()
String
representing the puzzle. The string returned
by this method may or may not be human-readable.
toString
in class java.lang.Object
String
representing the puzzle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |