|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalgs.debug.DottyDebugger
algs.model.problems.tictactoe.debug.TicTacToeDebugger
public class TicTacToeDebugger
Extends GameTreeDebugger to work with TicTacToe nodes. Since the state is mutated by the algorithm, we must maintain our local copies in a hash table.
| Field Summary |
|---|
| Fields inherited from class algs.debug.DottyDebugger |
|---|
_ctr, BreadthFirstOrdering, defaultFontName, defaultFontSize, DepthFirstOrdering, discarded, edges, goal, nodes, start, TooLarge, unexplored |
| Constructor Summary | |
|---|---|
TicTacToeDebugger()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getKey(IGraphEntity value)
Helper function to reverse locate the key. |
void |
visitNode(IGraphEntity n)
Mark node as being visited. |
| Methods inherited from class algs.debug.DottyDebugger |
|---|
complete, edgeType, getInputString, labelEdge, markDiscarded, markEdge, markGoal, markStart, markUnexplored, nodeType, numNodes, ordering, rank, visitEdge, visitEdge |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TicTacToeDebugger()
| Method Detail |
|---|
public void visitNode(IGraphEntity n)
visitNode in interface IDebugSearchvisitNode in class DottyDebuggern - node to be visitedprotected java.lang.String getKey(IGraphEntity value)
getKey in class DottyDebugger
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||