Class DefaultSingleConstraintAssertion<Solution_,Score_ extends Score<Score_>>
java.lang.Object
org.optaplanner.test.impl.score.stream.DefaultSingleConstraintAssertion<Solution_,Score_>
- All Implemented Interfaces:
SingleConstraintAssertion
public final class DefaultSingleConstraintAssertion<Solution_,Score_ extends Score<Score_>>
extends Object
implements SingleConstraintAssertion
-
Method Summary
Modifier and TypeMethodDescriptionvoid
As defined bySingleConstraintAssertion.penalizes(long)
.void
As defined bySingleConstraintAssertion.penalizes()
.void
penalizesBy
(int matchWeightTotal, String message) As defined bySingleConstraintAssertion.penalizesBy(int)
.void
penalizesBy
(long matchWeightTotal, String message) As defined bySingleConstraintAssertion.penalizesBy(int)
.void
penalizesBy
(BigDecimal matchWeightTotal, String message) As defined bySingleConstraintAssertion.penalizesBy(int)
.void
As defined bySingleConstraintAssertion.rewards(long)
.void
As defined bySingleConstraintAssertion.rewards()
.void
rewardsWith
(int matchWeightTotal, String message) As defined bySingleConstraintAssertion.rewardsWith(int)
.void
rewardsWith
(long matchWeightTotal, String message) As defined bySingleConstraintAssertion.rewardsWith(int)
.void
rewardsWith
(BigDecimal matchWeightTotal, String message) As defined bySingleConstraintAssertion.rewardsWith(int)
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.test.api.score.stream.SingleConstraintAssertion
penalizes, penalizes, penalizesBy, penalizesBy, penalizesBy, rewards, rewards, rewardsWith, rewardsWith, rewardsWith
-
Method Details
-
penalizesBy
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.penalizesBy(int)
.- Specified by:
penalizesBy
in interfaceSingleConstraintAssertion
- Parameters:
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being asserted
-
penalizesBy
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.penalizesBy(int)
.- Specified by:
penalizesBy
in interfaceSingleConstraintAssertion
- Parameters:
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being asserted
-
penalizesBy
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.penalizesBy(int)
.- Specified by:
penalizesBy
in interfaceSingleConstraintAssertion
- Parameters:
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being asserted
-
penalizes
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.penalizes(long)
.- Specified by:
penalizes
in interfaceSingleConstraintAssertion
- Parameters:
times
- at least 0, expected number of times that the constraint will penalizemessage
- sometimes null, description of the scenario being asserted
-
penalizes
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.penalizes()
.- Specified by:
penalizes
in interfaceSingleConstraintAssertion
- Parameters:
message
- sometimes null, description of the scenario being asserted
-
rewardsWith
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.rewardsWith(int)
.- Specified by:
rewardsWith
in interfaceSingleConstraintAssertion
- Parameters:
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being asserted
-
rewardsWith
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.rewardsWith(int)
.- Specified by:
rewardsWith
in interfaceSingleConstraintAssertion
- Parameters:
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being asserted
-
rewardsWith
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.rewardsWith(int)
.- Specified by:
rewardsWith
in interfaceSingleConstraintAssertion
- Parameters:
matchWeightTotal
- at least 0, expected sum of match weights of matches of the constraint.message
- sometimes null, description of the scenario being asserted
-
rewards
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.rewards(long)
.- Specified by:
rewards
in interfaceSingleConstraintAssertion
- Parameters:
times
- at least 0, expected number of times that the constraint will rewardmessage
- sometimes null, description of the scenario being asserted
-
rewards
Description copied from interface:SingleConstraintAssertion
As defined bySingleConstraintAssertion.rewards()
.- Specified by:
rewards
in interfaceSingleConstraintAssertion
- Parameters:
message
- sometimes null, description of the scenario being asserted
-