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.solution.director
Interface SolutionDirector

All Known Implementing Classes:
  DefaultSolutionDirector

    public interface SolutionDirector

A SolutionDirector hold a workingSolution and directs the Rule Engine to calculate the `Score` of that `Solution`.

Method Summary
`Score` | `calculateScoreFromWorkingMemory()` Calculates the and updates the workingSolution accordingly.
`org.drools.WorkingMemory` | `getWorkingMemory()`
`Solution` | `getWorkingSolution()` The `Solution` that is used in the `WorkingMemory`.

Method Detail

### getWorkingSolution

    Solution getWorkingSolution()

  The `Solution` that is used in the `WorkingMemory`.

  If the `Solution` has been changed since `calculateScoreFromWorkingMemory()` has been called, the `Solution.getScore()` of this `Solution` won't be correct.

  Returns:
    never null

### getWorkingMemory

    org.drools.WorkingMemory getWorkingMemory()

  Returns:
    never null

### calculateScoreFromWorkingMemory

    Score calculateScoreFromWorkingMemory()

  Calculates the and updates the workingSolution accordingly.

  Returns:
    never null, the score of the working solution

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-2011 JBoss by Red Hat. All Rights Reserved.