Class SearchViz

    • Field Detail

      • mSolver

        protected Solver mSolver
        Reference to the model
      • connected

        protected boolean connected
        Is connection alive
    • Constructor Detail

      • SearchViz

        public SearchViz​(Solver aSolver,
                         boolean sendDomain)
        Active connection to cp-profiler. This requires cp-profiler to be installed and launched before.
        Parameters:
        aSolver - solver to observe resolution
        sendDomain - set to true to send domain into 'info' field (beware, it can increase the memory consumption and slow down the overall execution), set to false otherwise.
    • Method Detail

      • connect

        protected abstract boolean connect​(String label)
      • disconnect

        protected abstract void disconnect()
      • sendNode

        protected abstract void sendNode​(int nc,
                                         int pid,
                                         int alt,
                                         int kid,
                                         int rid,
                                         String label,
                                         String info)
      • sendSolution

        protected abstract void sendSolution​(int nc,
                                             int pid,
                                             int alt,
                                             int kid,
                                             int rid,
                                             String label,
                                             String info)
      • sendFailure

        protected abstract void sendFailure​(int nc,
                                            int pid,
                                            int alt,
                                            int kid,
                                            int rid,
                                            String label,
                                            String info)
      • sendRestart

        protected abstract void sendRestart​(int rid)
      • beforeDownBranch

        public final void beforeDownBranch​(boolean left)
        Description copied from interface: IMonitorDownBranch
        Action to perform before going down in the tree search
        Specified by:
        beforeDownBranch in interface IMonitorDownBranch
        Parameters:
        left - set to true to specify that this is a left branch