Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Drools Planner distribution 6.0.0.Alpha9
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.drools.planner.core.score.buildin.simpledouble
Class SimpleDoubleScoreHolder

    java.lang.Object
      org.drools.planner.core.score.holder.AbstractScoreHolder
          org.drools.planner.core.score.buildin.simpledouble.SimpleDoubleScoreHolder

All Implemented Interfaces:
  Serializable, ScoreHolder

    public class SimpleDoubleScoreHolder

extends AbstractScoreHolder

See Also:
  Serialized Form

Field Summary
`protected double` | `score`

Constructor Summary
`SimpleDoubleScoreHolder()`

Method Summary
`void` | `addConstraintMatch(org.kie.runtime.rule.RuleContext kcontext, double weight)`
`Score` | `extractScore()` Extracts the `Score`, calculated by the `WorkingMemory` for `DroolsScoreDirector`.
`double` | `getScore()`
`void` | `setScore(double score)`

Methods inherited from class org.drools.planner.core.score.holder.AbstractScoreHolder
`registerUndoListener`

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

Field Detail

### score

    protected double score

Constructor Detail

### SimpleDoubleScoreHolder

    public SimpleDoubleScoreHolder()

Method Detail

### getScore

    public double getScore()

### setScore

    public void setScore(double score)

### addConstraintMatch

    public void addConstraintMatch(org.kie.runtime.rule.RuleContext kcontext,
                                   double weight)

### extractScore

    public Score extractScore()

  Description copied from interface: `ScoreHolder`
  Extracts the `Score`, calculated by the `WorkingMemory` for `DroolsScoreDirector`. Should not be called directly, use `ScoreDirector.calculateScore()` instead.

  Returns:
    never null, the `Score` of the working `Solution`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Drools Planner distribution 6.0.0.Alpha9
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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