- All Superinterfaces:
public interface SolverEventListener
- extends EventListener
void bestSolutionChanged(BestSolutionChangedEvent event)
- Called once every time when a better
Solution is found.
Early in the solving process it's usually called more frequently than later on.
Called from the solver thread.
Should return fast, because it steals time from the
Solver.addProblemFactChange(ProblemFactChange) has been called once or more,
ProblemFactChanges will be processed and this method is called once.
In that case, the former best
Solution is considered stale,
so it doesn't matter whether the new
Score is better than that or not.
event - never null
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.