|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMP4
public class MP4
MP4 is a sliding block puzzle solver. It coordinates solving the puzzle by instantiating PuzzleLoader and PuzzleSolution and handling the writing of output to the console and HTML file. TODO Learn how to use Java unit tests
Field Summary | |
---|---|
private static java.lang.String |
USAGE_TEXT
|
Constructor Summary | |
---|---|
MP4()
|
Method Summary | |
---|---|
static void |
dprint(java.lang.String string)
Prints the string to stdout (commented out in production version) |
static void |
main(java.lang.String[] argv)
This method is called when the class is loaded from the command line. |
static void |
print(java.lang.String string)
Prints the message to stdout |
private static void |
printFinalReport(PuzzleSolution solution)
Prints out information about the solution (or lack of one) |
private static void |
printInitialReport(PuzzleLoader loader)
Prints out the results of the file load operation. |
private static void |
writeHtmlReport(PuzzleLoader loader,
PuzzleSolution solution)
Writes a formatted HTML report with the results of the puzzle load and solution search operations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String USAGE_TEXT
Constructor Detail |
---|
public MP4()
Method Detail |
---|
public static void dprint(java.lang.String string)
string
- the string to be printedpublic static void print(java.lang.String string)
string
- the string to be printedpublic static void main(java.lang.String[] argv)
argv
- command line parametersprivate static void writeHtmlReport(PuzzleLoader loader, PuzzleSolution solution)
loader
- the loaded file informationsolution
- the solution to the puzzle, or nullprivate static void printFinalReport(PuzzleSolution solution)
solution
- the solution to the puzzle, or nullprivate static void printInitialReport(PuzzleLoader loader)
loader
- the loaded file information
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |