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.score.buildin.simpledouble
Class SimpleDoubleScoreCalculator

    java.lang.Object
      org.drools.planner.core.score.calculator.AbstractScoreCalculator
          org.drools.planner.core.score.buildin.simpledouble.SimpleDoubleScoreCalculator

All Implemented Interfaces:
  Serializable, Cloneable, ScoreCalculator

    public class SimpleDoubleScoreCalculator

extends AbstractScoreCalculator

See Also:
  Serialized Form

Constructor Summary
`SimpleDoubleScoreCalculator()`

Method Summary
`Score` | `calculateScore()` Calculates the score: the solution (encountered at a step) with the highest score will be seen as the the best solution.
`double` | `getScore()`
`void` | `setScore(double score)`

Methods inherited from class org.drools.planner.core.score.calculator.AbstractScoreCalculator
`clone`

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

Constructor Detail

### SimpleDoubleScoreCalculator

    public SimpleDoubleScoreCalculator()

Method Detail

### getScore

    public double getScore()

### setScore

    public void setScore(double score)

### calculateScore

    public Score calculateScore()

  Description copied from interface: `ScoreCalculator`
  Calculates the score: the solution (encountered at a step) with the highest score will be seen as the the best solution. The step score calculation should be kept stable over all steps. When the solution is modified during a Move, the WorkingMemory's FactHandles should have been correctly notified. Before the score is calculated, all rules are fired, which should trigger an update of this instance.

  Returns:
    never null, the score of the 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-2012 JBoss by Red Hat. All Rights Reserved.