JaCoP.search
Class PrintOutListener<T extends Var>

java.lang.Object
  extended by JaCoP.search.SimpleSolutionListener<T>
      extended by JaCoP.search.PrintOutListener<T>
All Implemented Interfaces:
SolutionListener<T>

public class PrintOutListener<T extends Var>
extends SimpleSolutionListener<T>
implements SolutionListener<T>


Field Summary
 
Fields inherited from class JaCoP.search.SimpleSolutionListener
childrenSolutionListeners, parentSolutionListener, parentSolutionNo, solutionLimit
 
Constructor Summary
PrintOutListener()
           
 
Method Summary
 boolean executeAfterSolution(Search<T> search, SelectChoicePoint<T> select)
          It is executed right after consistency of the current search node.
 
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
 
Methods inherited from interface JaCoP.search.SolutionListener
assignSolution, findSolutionMatchingParent, getParentSolution, getSolution, getSolutions, getVariables, isRecordingSolutions, printAllSolutions, recordSolutions, returnSolution, searchAll, setChildrenListeners, setChildrenListeners, setParentSolutionListener, setSolutionLimit, solutionLimitReached, solutionsNo, toString
 

Constructor Detail

PrintOutListener

public PrintOutListener()
Method Detail

executeAfterSolution

public boolean executeAfterSolution(Search<T> search,
                                    SelectChoicePoint<T> select)
It is executed right after consistency of the current search node. The return code specifies if the search should continue or exit.

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.