Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.Beta4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.core.impl.event
Interface SolverEventListener

All Superinterfaces:
  EventListener

    public interface SolverEventListener

extends EventListener

Method Summary
`void` | `bestSolutionChanged(BestSolutionChangedEvent event)` Called once every time when a better `Solution` is found.

Method Detail

### bestSolutionChanged

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

  If `Solver.addProblemFactChange(ProblemFactChange)` has been called once or more, all `ProblemFactChange`s 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.

  Parameters:
    `event` - never null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.Beta4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.