org.drools.planner.core.event
Class BestSolutionChangedEvent
java.lang.Object
java.util.EventObject
org.drools.planner.core.event.BestSolutionChangedEvent
- All Implemented Interfaces:
- Serializable
public class BestSolutionChangedEvent
- extends EventObject
Delivered when the best solution changes during solving.
- See Also:
- Serialized Form
BestSolutionChangedEvent
public BestSolutionChangedEvent(Solver source,
long timeMillisSpend,
Solution newBestSolution)
- Internal API.
- Parameters:
newBestSolution
- never null
getTimeMillisSpend
public long getTimeMillisSpend()
- Returns:
- the amount of millis spend since the solver started untill that best solution was found
getNewBestSolution
public Solution getNewBestSolution()
- Returns:
- never null
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.