Solution_- the solution type, the class with the
public interface SolverEventListener<Solution_> extends EventListener
|Modifier and Type||Method and Description|
Called once every time when a better
void bestSolutionChanged(BestSolutionChangedEvent<Solution_> event)
PlanningSolutionis found. The
PlanningSolutionis guaranteed to be initialized. 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
In real-time planning
Solver.addProblemFactChange(ProblemFactChange) has been called once or more,
ProblemFactChanges in the queue will be processed and this method is called only once.
In that case, the former best
PlanningSolution is considered stale,
so it doesn't matter whether the new
Score is better than that or not.
event- never null
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.