JaCoP.fz
Class Solve.CostListener<T extends Var>

java.lang.Object
  extended by JaCoP.search.SimpleSolutionListener<T>
      extended by JaCoP.fz.Solve.CostListener<T>
All Implemented Interfaces:
SolutionListener<T>
Enclosing class:
Solve

public class Solve.CostListener<T extends Var>
extends SimpleSolutionListener<T>

Author:
Krzysztof Kuchcinski

Field Summary
 
Fields inherited from class JaCoP.search.SimpleSolutionListener
childrenSolutionListeners, parentSolutionListener, parentSolutionNo, solutionLimit
 
Constructor Summary
Solve.CostListener()
           
 
Method Summary
 boolean executeAfterSolution(Search<T> search, SelectChoicePoint<T> select)
          It is executed by search after a solution is found.
 
Methods inherited from class JaCoP.search.SimpleSolutionListener
assignSolution, assignSolution, findSolutionMatchingParent, getParentSolution, getSolution, getSolutions, getVariables, isRecordingSolutions, printAllSolutions, recordSolution, recordSolutions, returnSolution, returnSolution, searchAll, setChildrenListeners, setChildrenListeners, setParentSolutionListener, setSolutionLimit, solutionLimitReached, solutionsNo, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Solve.CostListener

public Solve.CostListener()
Method Detail

executeAfterSolution

public boolean executeAfterSolution(Search<T> search,
                                    SelectChoicePoint<T> select)
Description copied from interface: SolutionListener
It is executed by search after a solution is found.

Specified by:
executeAfterSolution in interface SolutionListener<T extends Var>
Overrides:
executeAfterSolution in class SimpleSolutionListener<T extends Var>
Parameters:
search - the search which have found a solution.
select - the select choice point heuristic
Returns:
false forces the search to keep looking for a solution, true then the search will accept a solution.