public class BestSolutionChangedEvent<Solution_ extends Solution> extends EventObject
Solution changes during solving.
 Delivered in the solver thread (which is the thread that calls Solver.solve(Solution).source| Constructor and Description | 
|---|
BestSolutionChangedEvent(Solver<Solution_> solver,
                        long timeMillisSpent,
                        Solution_ newBestSolution,
                        int newUninitializedVariableCount)  | 
| Modifier and Type | Method and Description | 
|---|---|
Solution_ | 
getNewBestSolution()
Note that:
 
     In real-time planning, not all  
ProblemFactChanges might be processed:
     check isEveryProblemFactChangeProcessed(). | 
long | 
getTimeMillisSpent()  | 
boolean | 
isEveryProblemFactChangeProcessed()  | 
boolean | 
isNewBestSolutionInitialized()  | 
getSource, toStringpublic long getTimeMillisSpent()
>= 0, the amount of millis spent since the Solver started
 until getNewBestSolution() was foundpublic Solution_ getNewBestSolution()
ProblemFactChanges might be processed:
     check isEveryProblemFactChangeProcessed().Solution might be uninitialized: check isNewBestSolutionInitialized().Solution might be infeasible: check FeasibilityScore.isFeasible().public boolean isEveryProblemFactChangeProcessed()
Solver.isEveryProblemFactChangeProcessed()Solver.isEveryProblemFactChangeProcessed()public boolean isNewBestSolutionInitialized()
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.