org.drools.planner.core.score.buildin.simple
Class SimpleScoreHolder

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

public class SimpleScoreHolder
extends AbstractScoreHolder

See Also:
Serialized Form

Constructor Summary
SimpleScoreHolder()
           
 
Method Summary
 Score extractScore()
          Extracts the Score, calculated by the WorkingMemory for DroolsScoreDirector.
 int getScore()
           
 void setScore(int score)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleScoreHolder

public SimpleScoreHolder()
Method Detail

getScore

public int getScore()

setScore

public void setScore(int score)

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


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