public interface SolutionListener<V extends Variable<V,T>,T extends Value<V,T>>
Solution
Modifier and Type | Method and Description |
---|---|
void |
bestCleared(Solution<V,T> solution)
Called by the solution when method
Solution.clearBest() is
called. |
void |
bestRestored(Solution<V,T> solution)
Called by the solution when method
Solution.restoreBest() is
called. |
void |
bestSaved(Solution<V,T> solution)
Called by the solution when method
Solution.saveBest() is called. |
void |
getInfo(Solution<V,T> solution,
Map<String,String> info)
Called by the solution when it is asked to produce info table, see
Solution.getInfo() . |
void |
getInfo(Solution<V,T> solution,
Map<String,String> info,
Collection<V> variables)
Called by the solution when it is asked to produce info table, see
Solution.getInfo() . |
void |
solutionUpdated(Solution<V,T> solution)
Called by the solution when it is updated, see
Solution.update(double) . |
void solutionUpdated(Solution<V,T> solution)
Solution.update(double)
.solution
- source solutionvoid getInfo(Solution<V,T> solution, Map<String,String> info)
Solution.getInfo()
. A listener can also add some its info into
this table.solution
- source solutioninfo
- produced info tablevoid getInfo(Solution<V,T> solution, Map<String,String> info, Collection<V> variables)
Solution.getInfo()
. A listener can also add some its info into
this table.solution
- source solutioninfo
- produced info tablevariables
- only variables from this set are includedvoid bestCleared(Solution<V,T> solution)
Solution.clearBest()
is
called.solution
- source solutionvoid bestSaved(Solution<V,T> solution)
Solution.saveBest()
is called.solution
- source solutionvoid bestRestored(Solution<V,T> solution)
Solution.restoreBest()
is
called.solution
- source solution