public class CPProfiler extends Object implements IMonitorInitialize, IMonitorDownBranch, IMonitorUpBranch, IMonitorClose, IMonitorSolution, IMonitorContradiction, IMonitorRestart
Created by cprudhom on 22/10/2015. Project: choco.
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
Constructor and Description |
---|
CPProfiler(Solver aSolver)
Create a bridge to cp-profiler.
|
CPProfiler(Solver aSolver,
IMessage solutionMessage)
Create a bridge to cp-profiler.
|
Modifier and Type | Method and Description |
---|---|
void |
afterClose() |
void |
afterInitialize() |
void |
afterRestart() |
void |
beforeDownBranch(boolean left)
Action to perform before going down in the tree search
|
void |
beforeUpBranch() |
void |
onContradiction(ContradictionException cex) |
void |
onSolution() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beforeInitialize
afterDownBranch
afterUpBranch
beforeClose
beforeRestart
public CPProfiler(Solver aSolver)
aSolver
- solver to observe resolutionpublic CPProfiler(Solver aSolver, IMessage solutionMessage)
aSolver
- solver to observe resolutionsolutionMessage
- to send to cp-profiler when a solution is foundpublic void afterInitialize()
afterInitialize
in interface IMonitorInitialize
public void beforeDownBranch(boolean left)
IMonitorDownBranch
beforeDownBranch
in interface IMonitorDownBranch
left
- set to true to specify that this is a left branchpublic void beforeUpBranch()
beforeUpBranch
in interface IMonitorUpBranch
public void onSolution()
onSolution
in interface IMonitorSolution
public void onContradiction(ContradictionException cex)
onContradiction
in interface IMonitorContradiction
public void afterRestart()
afterRestart
in interface IMonitorRestart
public void afterClose()
afterClose
in interface IMonitorClose
Copyright © 2015. All rights reserved.