|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDebugSearch
Used by animation and other purposes to track the status of a Search.
This debugger gathers statistics during each visitNode and transition
method calls. Simple debuggers could output information as it happens.
More complex debuggers will build a model that will only be output at
the completion of the search, which is known after the
method is invoked.
complete()
The arguments are all generic, since the debugger that implements this interface is the only one who knows the true type of the information. Naturally, make sure you only attach a proper debugger to the proper information source.
Method Summary | |
---|---|
void |
complete()
Complete any processing to make this information available. |
void |
markDiscarded(IGraphEntity n)
Mark node as being discarded. |
void |
markEdge(IGraphEntity n1,
IGraphEntity n2)
Mark edge that was part of a solution. |
void |
markGoal(IGraphEntity n)
Mark search goal (or null for failed search). |
void |
markStart(IGraphEntity n)
Mark search initial location. |
void |
markUnexplored(IGraphEntity n)
Mark node as being unexplored. |
void |
visitEdge(IGraphEntity n1,
IGraphEntity n2)
Visit an edge. |
void |
visitNode(IGraphEntity n)
Visit a node. |
Method Detail |
---|
void visitNode(IGraphEntity n)
n
- node to be visitedvoid visitEdge(IGraphEntity n1, IGraphEntity n2)
n1
- source noden2
- target nodevoid markStart(IGraphEntity n)
n
- Node to be markedvoid markGoal(IGraphEntity n)
n
- Node to be markedvoid markUnexplored(IGraphEntity n)
n
- node to be markedvoid markDiscarded(IGraphEntity n)
n
- void markEdge(IGraphEntity n1, IGraphEntity n2)
n1
- source of edgen2
- target of edgevoid complete()
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |