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

## 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

Field Summary

Fields inherited from class java.util.EventObject
`source`

Constructor Summary
`BestSolutionChangedEvent(Solver source, long timeMillisSpend, Solution newBestSolution)` Internal API.

Method Summary
`Solution` | `getNewBestSolution()`
`long` | `getTimeMillisSpend()`

Methods inherited from class java.util.EventObject
`getSource, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### BestSolutionChangedEvent

    public BestSolutionChangedEvent(Solver source,
                                    long timeMillisSpend,
                                    Solution newBestSolution)

  Internal API.

  Parameters:
    `newBestSolution` - never null

Method Detail

### 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

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

Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.