OptaPlanner core 6.2.0.Beta2

org.optaplanner.core.api.score.constraint.primlong
Class LongConstraintMatchTotal

java.lang.Object
  extended by org.optaplanner.core.api.score.constraint.ConstraintMatchTotal
      extended by org.optaplanner.core.api.score.constraint.primlong.LongConstraintMatchTotal
All Implemented Interfaces:
Serializable, Comparable<ConstraintMatchTotal>

public class LongConstraintMatchTotal
extends ConstraintMatchTotal

See Also:
Serialized Form

Field Summary
protected  Set<LongConstraintMatch> constraintMatchSet
           
protected  long weightTotal
           
 
Fields inherited from class org.optaplanner.core.api.score.constraint.ConstraintMatchTotal
constraintName, constraintPackage, scoreLevel
 
Constructor Summary
LongConstraintMatchTotal(String constraintPackage, String constraintName, int scoreLevel)
           
 
Method Summary
 LongConstraintMatch addConstraintMatch(List<Object> justificationList, long weight)
           
 LongConstraintMatch addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, long weight)
           
 Set<LongConstraintMatch> getConstraintMatchSet()
           
 long getWeightTotal()
           
 Number getWeightTotalAsNumber()
           
 void removeConstraintMatch(LongConstraintMatch constraintMatch)
           
 
Methods inherited from class org.optaplanner.core.api.score.constraint.ConstraintMatchTotal
compareTo, extractJustificationList, getConstraintId, getConstraintMatchCount, getConstraintName, getConstraintPackage, getIdentificationString, getScoreLevel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

constraintMatchSet

protected final Set<LongConstraintMatch> constraintMatchSet

weightTotal

protected long weightTotal
Constructor Detail

LongConstraintMatchTotal

public LongConstraintMatchTotal(String constraintPackage,
                                String constraintName,
                                int scoreLevel)
Method Detail

getConstraintMatchSet

public Set<LongConstraintMatch> getConstraintMatchSet()
Specified by:
getConstraintMatchSet in class ConstraintMatchTotal

getWeightTotal

public long getWeightTotal()

getWeightTotalAsNumber

public Number getWeightTotalAsNumber()
Specified by:
getWeightTotalAsNumber in class ConstraintMatchTotal

addConstraintMatch

public LongConstraintMatch addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
                                              long weight)

addConstraintMatch

public LongConstraintMatch addConstraintMatch(List<Object> justificationList,
                                              long weight)

removeConstraintMatch

public void removeConstraintMatch(LongConstraintMatch constraintMatch)

OptaPlanner core 6.2.0.Beta2

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