public static class Test.TestSolutionListener extends Object implements SolutionListener<Request,Enrollment>
Constructor and Description |
---|
TestSolutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
bestCleared(Solution<Request,Enrollment> solution)
Called by the solution when method
Solution.clearBest() is
called. |
void |
bestRestored(Solution<Request,Enrollment> solution)
Called by the solution when method
Solution.restoreBest() is
called. |
void |
bestSaved(Solution<Request,Enrollment> solution)
Called by the solution when method
Solution.saveBest() is called. |
void |
getInfo(Solution<Request,Enrollment> solution,
Map<String,String> info)
Called by the solution when it is asked to produce info table, see
Solution.getInfo() . |
void |
getInfo(Solution<Request,Enrollment> solution,
Map<String,String> info,
Collection<Request> variables)
Called by the solution when it is asked to produce info table, see
Solution.getInfo() . |
void |
solutionUpdated(Solution<Request,Enrollment> solution)
Called by the solution when it is updated, see
Solution.update(double) . |
public TestSolutionListener()
public void solutionUpdated(Solution<Request,Enrollment> solution)
SolutionListener
Solution.update(double)
.solutionUpdated
in interface SolutionListener<Request,Enrollment>
solution
- source solutionpublic void getInfo(Solution<Request,Enrollment> solution, Map<String,String> info)
SolutionListener
Solution.getInfo()
. A listener can also add some its info into
this table.getInfo
in interface SolutionListener<Request,Enrollment>
solution
- source solutioninfo
- produced info tablepublic void getInfo(Solution<Request,Enrollment> solution, Map<String,String> info, Collection<Request> variables)
SolutionListener
Solution.getInfo()
. A listener can also add some its info into
this table.getInfo
in interface SolutionListener<Request,Enrollment>
solution
- source solutioninfo
- produced info tablevariables
- only variables from this set are includedpublic void bestCleared(Solution<Request,Enrollment> solution)
SolutionListener
Solution.clearBest()
is
called.bestCleared
in interface SolutionListener<Request,Enrollment>
solution
- source solutionpublic void bestSaved(Solution<Request,Enrollment> solution)
SolutionListener
Solution.saveBest()
is called.bestSaved
in interface SolutionListener<Request,Enrollment>
solution
- source solutionpublic void bestRestored(Solution<Request,Enrollment> solution)
SolutionListener
Solution.restoreBest()
is
called.bestRestored
in interface SolutionListener<Request,Enrollment>
solution
- source solution