OptaPlanner core 6.2.0.CR2

org.optaplanner.core.api.score.buildin.hardmediumsoftlong
Class HardMediumSoftLongScoreHolder

java.lang.Object
  extended by org.optaplanner.core.api.score.holder.AbstractScoreHolder
      extended by org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScoreHolder
All Implemented Interfaces:
Serializable, ScoreHolder

public class HardMediumSoftLongScoreHolder
extends AbstractScoreHolder

See Also:
HardMediumSoftScore, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.optaplanner.core.api.score.holder.AbstractScoreHolder
AbstractScoreHolder.BigDecimalConstraintUndoListener, AbstractScoreHolder.DoubleConstraintUndoListener, AbstractScoreHolder.IntConstraintUndoListener, AbstractScoreHolder.LongConstraintUndoListener
 
Field Summary
protected  long hardScore
           
protected  long mediumScore
           
protected  long softScore
           
 
Fields inherited from class org.optaplanner.core.api.score.holder.AbstractScoreHolder
constraintMatchEnabled, constraintMatchTotalMap
 
Constructor Summary
HardMediumSoftLongScoreHolder(boolean constraintMatchEnabled)
           
 
Method Summary
 void addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, long weight)
           
 void addMediumConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, long weight)
           
 void addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, long weight)
           
 Score extractScore()
          Extracts the Score, calculated by the KieSession for DroolsScoreDirector.
 long getHardScore()
           
 long getMediumScore()
           
 long getSoftScore()
           
 void setHardScore(long hardScore)
          Deprecated. 
 void setMediumScore(long mediumScore)
          Deprecated. 
 void setSoftScore(long softScore)
          Deprecated. 
 
Methods inherited from class org.optaplanner.core.api.score.holder.AbstractScoreHolder
getConstraintMatchTotals, isConstraintMatchEnabled, registerBigDecimalConstraintMatch, registerDoubleConstraintMatch, registerIntConstraintMatch, registerLongConstraintMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hardScore

protected long hardScore

mediumScore

protected long mediumScore

softScore

protected long softScore
Constructor Detail

HardMediumSoftLongScoreHolder

public HardMediumSoftLongScoreHolder(boolean constraintMatchEnabled)
Method Detail

getHardScore

public long getHardScore()

setHardScore

@Deprecated
public void setHardScore(long hardScore)
Deprecated. 


getMediumScore

public long getMediumScore()

setMediumScore

@Deprecated
public void setMediumScore(long mediumScore)
Deprecated. 


getSoftScore

public long getSoftScore()

setSoftScore

@Deprecated
public void setSoftScore(long softScore)
Deprecated. 


addHardConstraintMatch

public void addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
                                   long weight)

addMediumConstraintMatch

public void addMediumConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
                                     long weight)

addSoftConstraintMatch

public void addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
                                   long weight)

extractScore

public Score extractScore()
Description copied from interface: ScoreHolder
Extracts the Score, calculated by the KieSession for DroolsScoreDirector.

Should not be called directly, use ScoreDirector.calculateScore() instead.

Returns:
never null, the Score of the working Solution

OptaPlanner core 6.2.0.CR2

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