Package org.jacop.fz
Class Solve.CostListener<T extends Var>
java.lang.Object
org.jacop.search.SimpleSolutionListener<T>
org.jacop.fz.Solve.CostListener<T>
- All Implemented Interfaces:
SolutionListener<T>
- Enclosing class:
- Solve
-
Field Summary
Fields inherited from class org.jacop.search.SimpleSolutionListener
childrenSolutionListeners, noSolutions, parentSolutionListener, parentSolutionNo, solutionLimit, solutions, vars
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
executeAfterSolution
(Search<T> search, SelectChoicePoint<T> select) It is executed by search after a solution is found.Methods inherited from class org.jacop.search.SimpleSolutionListener
assignSolution, assignSolution, findSolutionMatchingParent, getParentSolution, getSolution, getSolutions, getVariables, isRecordingSolutions, printAllSolutions, recordSolution, recordSolutions, returnSolution, returnSolution, searchAll, setChildrenListeners, setChildrenListeners, setParentSolutionListener, setSolutionLimit, setSolutionsNo, setVariables, solutionLimitReached, solutionsNo, toString
-
Constructor Details
-
CostListener
public CostListener()
-
-
Method Details
-
executeAfterSolution
Description copied from interface:SolutionListener
It is executed by search after a solution is found.- Specified by:
executeAfterSolution
in interfaceSolutionListener<T extends Var>
- Overrides:
executeAfterSolution
in classSimpleSolutionListener<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.
-