Class AbstractSingleConstraintAssertion<Solution_,Score_ extends Score<Score_>>
java.lang.Object
ai.timefold.solver.test.impl.score.stream.AbstractConstraintAssertion<Solution_,Score_>
ai.timefold.solver.test.impl.score.stream.AbstractSingleConstraintAssertion<Solution_,Score_>
- All Implemented Interfaces:
SingleConstraintAssertion
- Direct Known Subclasses:
DefaultShadowVariableAwareSingleConstraintAssertion,DefaultSingleConstraintAssertion
public abstract sealed class AbstractSingleConstraintAssertion<Solution_,Score_ extends Score<Score_>>
extends AbstractConstraintAssertion<Solution_,Score_>
implements SingleConstraintAssertion
permits DefaultSingleConstraintAssertion<Solution_,Score_>, DefaultShadowVariableAwareSingleConstraintAssertion<Solution_,Score_>
-
Method Summary
Modifier and TypeMethodDescription@NonNull SingleConstraintAssertionindictsWith(@Nullable String message, @NonNull Object @NonNull ... indictments) As defined bySingleConstraintAssertion.indictsWith(Object...).@NonNull SingleConstraintAssertionindictsWithExactly(@Nullable String message, @NonNull Object @NonNull ... indictments) As defined bySingleConstraintAssertion.indictsWithExactly(Object...).@NonNull SingleConstraintAssertionjustifiesWith(String message, @NonNull ConstraintJustification @NonNull ... justifications) @NonNull SingleConstraintAssertionjustifiesWithExactly(@Nullable String message, @NonNull ConstraintJustification @NonNull ... justifications) voidAs defined bySingleConstraintAssertion.penalizes().voidAs defined bySingleConstraintAssertion.penalizes(long).voidpenalizesBy(@Nullable String message, int matchWeightTotal) As defined bySingleConstraintAssertion.penalizesBy(int).voidpenalizesBy(@Nullable String message, long matchWeightTotal) As defined bySingleConstraintAssertion.penalizesBy(long).voidpenalizesBy(@Nullable String message, @NonNull BigDecimal matchWeightTotal) As defined bySingleConstraintAssertion.penalizesBy(BigDecimal).voidpenalizesByLessThan(@Nullable String message, int matchWeightTotal) As defined bySingleConstraintAssertion.penalizesByLessThan(int).voidpenalizesByLessThan(@Nullable String message, long matchWeightTotal) As defined bySingleConstraintAssertion.penalizesByLessThan(long).voidpenalizesByLessThan(@Nullable String message, @NonNull BigDecimal matchWeightTotal) As defined bySingleConstraintAssertion.penalizesByLessThan(BigDecimal).voidpenalizesByMoreThan(@Nullable String message, int matchWeightTotal) As defined bySingleConstraintAssertion.penalizesByMoreThan(int).voidpenalizesByMoreThan(@Nullable String message, @NonNull BigDecimal matchWeightTotal) As defined bySingleConstraintAssertion.penalizesByMoreThan(BigDecimal).voidpenalizesByMoreThan(String message, long matchWeightTotal) As defined bySingleConstraintAssertion.penalizesByMoreThan(long).voidpenalizesLessThan(@Nullable String message, long times) As defined bySingleConstraintAssertion.penalizesLessThan(long).voidpenalizesMoreThan(@Nullable String message, long times) As defined bySingleConstraintAssertion.penalizesMoreThan(long).voidAs defined bySingleConstraintAssertion.rewards(long).voidAs defined bySingleConstraintAssertion.rewards().voidrewardsLessThan(String message, long times) As defined bySingleConstraintAssertion.rewardsLessThan(long).voidrewardsMoreThan(@Nullable String message, long times) As defined bySingleConstraintAssertion.rewardsMoreThan(long).voidrewardsWith(@Nullable String message, int matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWith(int).voidrewardsWith(@Nullable String message, long matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWith(long).voidrewardsWith(@Nullable String message, @NonNull BigDecimal matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWith(BigDecimal).voidrewardsWithLessThan(@Nullable String message, int matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWithLessThan(int).voidrewardsWithLessThan(@Nullable String message, @NonNull BigDecimal matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWithLessThan(BigDecimal).voidrewardsWithLessThan(String message, long matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWithLessThan(long).voidrewardsWithMoreThan(@Nullable String message, int matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWithMoreThan(int).voidrewardsWithMoreThan(@Nullable String message, long matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWithMoreThan(long).voidrewardsWithMoreThan(@Nullable String message, @NonNull BigDecimal matchWeightTotal) As defined bySingleConstraintAssertion.rewardsWithMoreThan(BigDecimal).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.timefold.solver.test.api.score.stream.SingleConstraintAssertion
indictsWith, indictsWithExactly, justifiesWith, justifiesWithExactly, penalizes, penalizes, penalizes, penalizesBy, penalizesBy, penalizesBy, penalizesBy, penalizesBy, penalizesBy, penalizesByLessThan, penalizesByLessThan, penalizesByLessThan, penalizesByMoreThan, penalizesByMoreThan, penalizesByMoreThan, penalizesLessThan, penalizesMoreThan, rewards, rewards, rewards, rewardsLessThan, rewardsMoreThan, rewardsWith, rewardsWith, rewardsWith, rewardsWith, rewardsWith, rewardsWith, rewardsWithLessThan, rewardsWithLessThan, rewardsWithLessThan, rewardsWithMoreThan, rewardsWithMoreThan, rewardsWithMoreThan
-
Method Details
-
justifiesWith
public @NonNull SingleConstraintAssertion justifiesWith(String message, @NonNull ConstraintJustification @NonNull ... justifications) Description copied from interface:SingleConstraintAssertion- Specified by:
justifiesWithin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedjustifications- the expected justification.
-
indictsWith
public @NonNull SingleConstraintAssertion indictsWith(@Nullable String message, @NonNull Object @NonNull ... indictments) Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.indictsWith(Object...).- Specified by:
indictsWithin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedindictments- the expected indictments.
-
justifiesWithExactly
public @NonNull SingleConstraintAssertion justifiesWithExactly(@Nullable String message, @NonNull ConstraintJustification @NonNull ... justifications) Description copied from interface:SingleConstraintAssertion- Specified by:
justifiesWithExactlyin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedjustifications- the expected justification.
-
indictsWithExactly
public @NonNull SingleConstraintAssertion indictsWithExactly(@Nullable String message, @NonNull Object @NonNull ... indictments) Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.indictsWithExactly(Object...).- Specified by:
indictsWithExactlyin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedindictments- the expected indictments.
-
penalizesBy
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesBy(int).- Specified by:
penalizesByin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
penalizesBy
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesBy(long).- Specified by:
penalizesByin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
penalizesBy
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesBy(BigDecimal).- Specified by:
penalizesByin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
penalizes
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizes(long).- Specified by:
penalizesin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedtimes- at least 0, expected number of times that the constraint will penalize
-
penalizes
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizes().- Specified by:
penalizesin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being asserted
-
rewardsWith
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWith(int).- Specified by:
rewardsWithin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
rewardsWith
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWith(long).- Specified by:
rewardsWithin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
rewardsWith
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWith(BigDecimal).- Specified by:
rewardsWithin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
rewards
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewards(long).- Specified by:
rewardsin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedtimes- at least 0, expected number of times that the constraint will reward
-
rewards
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewards().- Specified by:
rewardsin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being asserted
-
penalizesByMoreThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesByMoreThan(int).- Specified by:
penalizesByMoreThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
penalizesByMoreThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesByMoreThan(long).- Specified by:
penalizesByMoreThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
penalizesByMoreThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesByMoreThan(BigDecimal).- Specified by:
penalizesByMoreThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
penalizesMoreThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesMoreThan(long).- Specified by:
penalizesMoreThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedtimes- at least 0, expected number of times that the constraint will penalize
-
rewardsWithMoreThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWithMoreThan(int).- Specified by:
rewardsWithMoreThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
rewardsWithMoreThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWithMoreThan(long).- Specified by:
rewardsWithMoreThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
rewardsWithMoreThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWithMoreThan(BigDecimal).- Specified by:
rewardsWithMoreThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 0, expected sum of match weights of matches of the constraint.
-
rewardsMoreThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsMoreThan(long).- Specified by:
rewardsMoreThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedtimes- at least 0, expected number of times that the constraint will reward
-
penalizesByLessThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesByLessThan(int).- Specified by:
penalizesByLessThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 1, expected sum of match weights of matches of the constraint.
-
penalizesByLessThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesByLessThan(long).- Specified by:
penalizesByLessThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 1, expected sum of match weights of matches of the constraint.
-
penalizesByLessThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesByLessThan(BigDecimal).- Specified by:
penalizesByLessThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 1, expected sum of match weights of matches of the constraint.
-
penalizesLessThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.penalizesLessThan(long).- Specified by:
penalizesLessThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedtimes- at least 1, expected number of times that the constraint will penalize
-
rewardsWithLessThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWithLessThan(int).- Specified by:
rewardsWithLessThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 1, expected sum of match weights of matches of the constraint.
-
rewardsWithLessThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWithLessThan(long).- Specified by:
rewardsWithLessThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 1, expected sum of match weights of matches of the constraint.
-
rewardsWithLessThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsWithLessThan(BigDecimal).- Specified by:
rewardsWithLessThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedmatchWeightTotal- at least 1, expected sum of match weights of matches of the constraint.
-
rewardsLessThan
Description copied from interface:SingleConstraintAssertionAs defined bySingleConstraintAssertion.rewardsLessThan(long).- Specified by:
rewardsLessThanin interfaceSingleConstraintAssertion- Parameters:
message- description of the scenario being assertedtimes- at least 1, expected number of times that the constraint will reward
-