net.sf.cpsolver.studentsct
Class Test.TestSolutionListener

java.lang.Object
  extended by net.sf.cpsolver.studentsct.Test.TestSolutionListener
All Implemented Interfaces:
SolutionListener
Enclosing class:
Test

public static class Test.TestSolutionListener
extends Object
implements SolutionListener


Constructor Summary
Test.TestSolutionListener()
           
 
Method Summary
 void bestCleared(Solution solution)
          Called by the solution when method Solution.clearBest() is called.
 void bestRestored(Solution solution)
          Called by the solution when method Solution.restoreBest() is called.
 void bestSaved(Solution solution)
          Called by the solution when method Solution.saveBest() is called.
 void getInfo(Solution solution, Dictionary info)
          Called by the solution when it is asked to produce info table, see Solution.getInfo().
 void getInfo(Solution solution, Dictionary info, Vector variables)
          Called by the solution when it is asked to produce info table, see Solution.getInfo().
 void solutionUpdated(Solution solution)
          Called by the solution when it is updated, see Solution.update(double).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test.TestSolutionListener

public Test.TestSolutionListener()
Method Detail

solutionUpdated

public void solutionUpdated(Solution solution)
Description copied from interface: SolutionListener
Called by the solution when it is updated, see Solution.update(double).

Specified by:
solutionUpdated in interface SolutionListener
Parameters:
solution - source solution

getInfo

public void getInfo(Solution solution,
                    Dictionary info)
Description copied from interface: SolutionListener
Called by the solution when it is asked to produce info table, see Solution.getInfo(). A listener can also add some its info into this table.

Specified by:
getInfo in interface SolutionListener
Parameters:
solution - source solution
info - produced info table

getInfo

public void getInfo(Solution solution,
                    Dictionary info,
                    Vector variables)
Description copied from interface: SolutionListener
Called by the solution when it is asked to produce info table, see Solution.getInfo(). A listener can also add some its info into this table.

Specified by:
getInfo in interface SolutionListener
Parameters:
solution - source solution
info - produced info table
variables - only variables from this set are included

bestCleared

public void bestCleared(Solution solution)
Description copied from interface: SolutionListener
Called by the solution when method Solution.clearBest() is called.

Specified by:
bestCleared in interface SolutionListener
Parameters:
solution - source solution

bestSaved

public void bestSaved(Solution solution)
Description copied from interface: SolutionListener
Called by the solution when method Solution.saveBest() is called.

Specified by:
bestSaved in interface SolutionListener
Parameters:
solution - source solution

bestRestored

public void bestRestored(Solution solution)
Description copied from interface: SolutionListener
Called by the solution when method Solution.restoreBest() is called.

Specified by:
bestRestored in interface SolutionListener
Parameters:
solution - source solution