Package com.artelys.kalis
Class KSolverEventListener
- java.lang.Object
-
- com.artelys.kalis.KSolverEventListener
-
- Direct Known Subclasses:
KParallelSolverEventListener
public class KSolverEventListener extends java.lang.Object
Callbacks for a KSolver events.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
swigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description KSolverEventListener()
protected
KSolverEventListener(long cPtr, boolean cMemoryOwn)
KSolverEventListener(KProblem problem)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
branchGoDown(int thread)
Called after each branchGoDown eventvoid
branchGoUp(int thread)
Called after each branchGoUp eventvoid
branchingScheme()
Called after each bracnhing scheme switchvoid
delete()
protected void
finalize()
protected static long
getCPtr(KSolverEventListener obj)
KSolverEventListener
getInstanceCopyPtr(KProblem problem)
KProblem
getProblem()
void
nodeExplored(int thread)
Called after constraint propagation in each nodevoid
solutionFound(KSolution solution)
Called each time a solution is foundvoid
solutionFound(KSolution solution, int thread)
boolean
stopComputations()
Ask user for termination at each nodeprotected void
swigDirectorDisconnect()
void
swigReleaseOwnership()
void
swigTakeOwnership()
-
-
-
Constructor Detail
-
KSolverEventListener
protected KSolverEventListener(long cPtr, boolean cMemoryOwn)
-
KSolverEventListener
public KSolverEventListener()
-
KSolverEventListener
public KSolverEventListener(KProblem problem)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KSolverEventListener obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
delete
public void delete()
-
swigDirectorDisconnect
protected void swigDirectorDisconnect()
-
swigReleaseOwnership
public void swigReleaseOwnership()
-
swigTakeOwnership
public void swigTakeOwnership()
-
getProblem
public KProblem getProblem()
-
nodeExplored
public void nodeExplored(int thread)
Called after constraint propagation in each node
-
branchGoDown
public void branchGoDown(int thread)
Called after each branchGoDown event
-
branchGoUp
public void branchGoUp(int thread)
Called after each branchGoUp event
-
branchingScheme
public void branchingScheme()
Called after each bracnhing scheme switch
-
stopComputations
public boolean stopComputations()
Ask user for termination at each node
-
solutionFound
public void solutionFound(KSolution solution)
Called each time a solution is found
-
solutionFound
public void solutionFound(KSolution solution, int thread)
-
getInstanceCopyPtr
public KSolverEventListener getInstanceCopyPtr(KProblem problem)
-
-