net.sf.cpsolver.ifs.solution
Interface SolutionListener

All Known Implementing Classes:
ExamGreatDeluge, ExamHillClimbing, ExamSimulatedAnnealing, SearchIntensification, Test, Test.TestSolutionListener

public interface SolutionListener

IFS solution listener.

Version:
IFS 1.1 (Iterative Forward Search)
Copyright (C) 2006 Tomáš Müller
muller@unitime.org
Lazenska 391, 76314 Zlin, Czech Republic

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
See Also:
Solution

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).
 

Method Detail

solutionUpdated

void solutionUpdated(Solution solution)
Called by the solution when it is updated, see Solution.update(double).

Parameters:
solution - source solution

getInfo

void getInfo(Solution solution,
             Dictionary info)
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.

Parameters:
solution - source solution
info - produced info table

getInfo

void getInfo(Solution solution,
             Dictionary info,
             Vector variables)
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.

Parameters:
solution - source solution
info - produced info table
variables - only variables from this set are included

bestCleared

void bestCleared(Solution solution)
Called by the solution when method Solution.clearBest() is called.

Parameters:
solution - source solution

bestSaved

void bestSaved(Solution solution)
Called by the solution when method Solution.saveBest() is called.

Parameters:
solution - source solution

bestRestored

void bestRestored(Solution solution)
Called by the solution when method Solution.restoreBest() is called.

Parameters:
solution - source solution