public final class DefaultSingleConstraintAssertion<Solution_> extends Object implements SingleConstraintAssertion
Modifier | Constructor and Description |
---|---|
protected |
DefaultSingleConstraintAssertion(ConstraintStreamScoreDirectorFactory<Solution_> scoreDirectorFactory,
Map<String,ConstraintMatchTotal> constraintMatchTotalMap) |
Modifier and Type | Method and Description |
---|---|
void |
penalizesBy(BigDecimal matchWeightTotal,
String message)
As defined by
SingleConstraintAssertion.penalizesBy(int) . |
void |
penalizesBy(int matchWeightTotal,
String message)
As defined by
SingleConstraintAssertion.penalizesBy(int) . |
void |
penalizesBy(long matchWeightTotal,
String message)
As defined by
SingleConstraintAssertion.penalizesBy(int) . |
void |
rewardsWith(BigDecimal matchWeightTotal,
String message)
As defined by
SingleConstraintAssertion.rewardsWith(int) . |
void |
rewardsWith(int matchWeightTotal,
String message)
As defined by
SingleConstraintAssertion.rewardsWith(int) . |
void |
rewardsWith(long matchWeightTotal,
String message)
As defined by
SingleConstraintAssertion.rewardsWith(int) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
penalizesBy, penalizesBy, penalizesBy, rewardsWith, rewardsWith, rewardsWith
protected DefaultSingleConstraintAssertion(ConstraintStreamScoreDirectorFactory<Solution_> scoreDirectorFactory, Map<String,ConstraintMatchTotal> constraintMatchTotalMap)
public void penalizesBy(int matchWeightTotal, String message)
SingleConstraintAssertion
SingleConstraintAssertion.penalizesBy(int)
.penalizesBy
in interface SingleConstraintAssertion
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being assertedpublic void penalizesBy(long matchWeightTotal, String message)
SingleConstraintAssertion
SingleConstraintAssertion.penalizesBy(int)
.penalizesBy
in interface SingleConstraintAssertion
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being assertedpublic void penalizesBy(BigDecimal matchWeightTotal, String message)
SingleConstraintAssertion
SingleConstraintAssertion.penalizesBy(int)
.penalizesBy
in interface SingleConstraintAssertion
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being assertedpublic void rewardsWith(int matchWeightTotal, String message)
SingleConstraintAssertion
SingleConstraintAssertion.rewardsWith(int)
.rewardsWith
in interface SingleConstraintAssertion
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being assertedpublic void rewardsWith(long matchWeightTotal, String message)
SingleConstraintAssertion
SingleConstraintAssertion.rewardsWith(int)
.rewardsWith
in interface SingleConstraintAssertion
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being assertedpublic void rewardsWith(BigDecimal matchWeightTotal, String message)
SingleConstraintAssertion
SingleConstraintAssertion.rewardsWith(int)
.rewardsWith
in interface SingleConstraintAssertion
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being assertedCopyright © 2006–2021 JBoss by Red Hat. All rights reserved.