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 SummaryModifier and TypeMethodDescriptionvoidAs defined bySingleConstraintAssertion.penalizes(long).voidAs defined bySingleConstraintAssertion.penalizes().voidpenalizesBy(int matchWeightTotal, String message) As defined bySingleConstraintAssertion.penalizesBy(int).voidpenalizesBy(long matchWeightTotal, String message) As defined bySingleConstraintAssertion.penalizesBy(int).voidpenalizesBy(BigDecimal matchWeightTotal, String message) As defined bySingleConstraintAssertion.penalizesBy(int).voidAs defined bySingleConstraintAssertion.rewards(long).voidAs defined bySingleConstraintAssertion.rewards().voidrewardsWith(int matchWeightTotal, String message) As defined bySingleConstraintAssertion.rewardsWith(int).voidrewardsWith(long matchWeightTotal, String message) As defined bySingleConstraintAssertion.rewardsWith(int).voidrewardsWith(BigDecimal matchWeightTotal, String message) As defined bySingleConstraintAssertion.rewardsWith(int).Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.test.api.score.stream.SingleConstraintAssertionpenalizes, penalizes, penalizesBy, penalizesBy, penalizesBy, rewards, rewards, rewardsWith, rewardsWith, rewardsWith
- 
Method Details- 
penalizesByDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesBy(int).- Specified by:
- penalizesByin interface- SingleConstraintAssertion
- Parameters:
- matchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
- message- sometimes null, description of the scenario being asserted
 
- 
penalizesByDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesBy(int).- Specified by:
- penalizesByin interface- SingleConstraintAssertion
- Parameters:
- matchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
- message- sometimes null, description of the scenario being asserted
 
- 
penalizesByDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesBy(int).- Specified by:
- penalizesByin interface- SingleConstraintAssertion
- Parameters:
- matchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
- message- sometimes null, description of the scenario being asserted
 
- 
penalizesDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizes(long).- Specified by:
- penalizesin interface- SingleConstraintAssertion
- Parameters:
- times- at least 0, expected number of times that the constraint will penalize
- message- sometimes null, description of the scenario being asserted
 
- 
penalizesDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizes().- Specified by:
- penalizesin interface- SingleConstraintAssertion
- Parameters:
- message- sometimes null, description of the scenario being asserted
 
- 
rewardsWithDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWith(int).- Specified by:
- rewardsWithin interface- SingleConstraintAssertion
- Parameters:
- matchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
- message- sometimes null, description of the scenario being asserted
 
- 
rewardsWithDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWith(int).- Specified by:
- rewardsWithin interface- SingleConstraintAssertion
- Parameters:
- matchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
- message- sometimes null, description of the scenario being asserted
 
- 
rewardsWithDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWith(int).- Specified by:
- rewardsWithin interface- SingleConstraintAssertion
- Parameters:
- matchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
- message- sometimes null, description of the scenario being asserted
 
- 
rewardsDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewards(long).- Specified by:
- rewardsin interface- SingleConstraintAssertion
- Parameters:
- times- at least 0, expected number of times that the constraint will reward
- message- sometimes null, description of the scenario being asserted
 
- 
rewardsDescription copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewards().- Specified by:
- rewardsin interface- SingleConstraintAssertion
- Parameters:
- message- sometimes null, description of the scenario being asserted
 
 
-