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:
source
- never nulltimeMillisSpend
- >= 0LnewBestSolution
- never null
getTimeMillisSpend
public long getTimeMillisSpend()
- Returns:
- the amount of millis spend since the solver started until that best solution was found
getNewBestSolution
public Solution getNewBestSolution()
- Returns:
- never null
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.