java.lang.Object
org.maxicp.search.DFSTreeRecorder
- All Implemented Interfaces:
DFSListener
A DFSListener that records the search tree in a Tree structure.
It can be used to visualize the search process by exoprting the tree to TikZ format.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.maxicp.search.DFSListener
branchingAction, clear, restoreState, saveState
-
Field Details
-
root
public final int root- See Also:
-
-
Constructor Details
-
DFSTreeRecorder
public DFSTreeRecorder()
-
-
Method Details
-
branch
public void branch(int nodeId, int parentId) - Specified by:
branchin interfaceDFSListener
-
solution
public void solution(int nodeId, int parentId) - Specified by:
solutionin interfaceDFSListener
-
fail
public void fail(int nodeId, int parentId) - Specified by:
failin interfaceDFSListener
-
solution
-
fail
-
branch
-
toString
-
toTikz
public void toTikz() -
toTikz
public void toTikz(double xScale, double yStep, double labelOffsetPt, double nodeDiameter)
-