Drools Planner distribution 6.0.0-SNAPSHOT

org.drools.planner.core.score.buildin.simplelong
Class SimpleLongScoreHolder

java.lang.Object
  extended by org.drools.planner.core.score.holder.AbstractScoreHolder
      extended by org.drools.planner.core.score.buildin.simplelong.SimpleLongScoreHolder
All Implemented Interfaces:
Serializable, ScoreHolder

public class SimpleLongScoreHolder
extends AbstractScoreHolder

See Also:
Serialized Form

Field Summary
protected  long score
           
 
Constructor Summary
SimpleLongScoreHolder()
           
 
Method Summary
 void addConstraintMatch(org.kie.runtime.rule.RuleContext kcontext, long weight)
           
 Score extractScore()
          Extracts the Score, calculated by the WorkingMemory for DroolsScoreDirector.
 long getScore()
           
 void setScore(long 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 long score
Constructor Detail

SimpleLongScoreHolder

public SimpleLongScoreHolder()
Method Detail

getScore

public long getScore()

setScore

public void setScore(long score)

addConstraintMatch

public void addConstraintMatch(org.kie.runtime.rule.RuleContext kcontext,
                               long 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

Drools Planner distribution 6.0.0-SNAPSHOT

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