Module org.maxicp

Class DFSTreeRecorder

java.lang.Object
org.maxicp.search.DFSTreeRecorder
All Implemented Interfaces:
DFSListener

public class DFSTreeRecorder extends Object implements 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 Details

  • Constructor Details

    • DFSTreeRecorder

      public DFSTreeRecorder()
  • Method Details

    • branch

      public void branch(int nodeId, int parentId)
      Specified by:
      branch in interface DFSListener
    • solution

      public void solution(int nodeId, int parentId)
      Specified by:
      solution in interface DFSListener
    • fail

      public void fail(int nodeId, int parentId)
      Specified by:
      fail in interface DFSListener
    • solution

      public void solution(int id, int pId, String edgeLabel)
    • fail

      public void fail(int id, int pId, String edgeLabel)
    • branch

      public void branch(int id, int pId, String edgeLabel)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toTikz

      public void toTikz()
    • toTikz

      public void toTikz(double xScale, double yStep, double labelOffsetPt, double nodeDiameter)