Uses of Interface
org.optaplanner.core.api.score.stream.ConstraintJustification
Package
Description
Classes used for
Score
calculation.The
ConstraintStream
API for bi-tuples.The
ConstraintStream
API for four matched facts.The
ConstraintStream
API for tri-tuples.The
ConstraintStream
API for uni-tuples.-
Uses of ConstraintJustification in org.optaplanner.core.api.score
Modifier and TypeMethodDescriptiondefault <ConstraintJustification_ extends ConstraintJustification>
List<ConstraintJustification_>ScoreExplanation.getJustificationList
(Class<? extends ConstraintJustification_> constraintJustificationClass) Explains theScore
ofScoreExplanation.getScore()
for all constraints justified with a givenConstraintJustification
type.Modifier and TypeMethodDescriptionScoreExplanation.getJustificationList()
Explains theScore
ofScoreExplanation.getScore()
for all constraints. -
Uses of ConstraintJustification in org.optaplanner.core.api.score.constraint
Modifier and TypeMethodDescription<Justification_ extends ConstraintJustification>
Justification_ConstraintMatch.getJustification()
Return a singular justification for the constraint.default <ConstraintJustification_ extends ConstraintJustification>
List<ConstraintJustification_>Indictment.getJustificationList
(Class<ConstraintJustification_> justificationClass) RetrieveConstraintJustification
instances associated withConstraintMatch
es inIndictment.getConstraintMatchSet()
, which are of (or extend) a given constraint justification implementation.Modifier and TypeMethodDescriptionIndictment.getJustificationList()
RetrieveConstraintJustification
instances associated withConstraintMatch
es inIndictment.getConstraintMatchSet()
.ModifierConstructorDescriptionConstraintMatch
(String constraintPackage, String constraintName, ConstraintJustification justification, Collection<Object> indictedObjects, Score_ score) -
Uses of ConstraintJustification in org.optaplanner.core.api.score.stream
Modifier and TypeClassDescriptionfinal class
Default implementation ofConstraintJustification
, returned byConstraintMatch.getJustification()
unless the user defined a custom justification mapping. -
Uses of ConstraintJustification in org.optaplanner.core.api.score.stream.bi
Modifier and TypeMethodDescription<ConstraintJustification_ extends ConstraintJustification>
BiConstraintBuilder<A,B, Score_> BiConstraintBuilder.justifyWith
(TriFunction<A, B, Score_, ConstraintJustification_> justificationMapping) Sets a custom function to apply on a constraint match to justify it. -
Uses of ConstraintJustification in org.optaplanner.core.api.score.stream.quad
Modifier and TypeMethodDescription<ConstraintJustification_ extends ConstraintJustification>
QuadConstraintBuilder<A,B, C, D, Score_> QuadConstraintBuilder.justifyWith
(PentaFunction<A, B, C, D, Score_, ConstraintJustification_> justificationMapping) Sets a custom function to apply on a constraint match to justify it. -
Uses of ConstraintJustification in org.optaplanner.core.api.score.stream.tri
Modifier and TypeMethodDescription<ConstraintJustification_ extends ConstraintJustification>
TriConstraintBuilder<A,B, C, Score_> TriConstraintBuilder.justifyWith
(QuadFunction<A, B, C, Score_, ConstraintJustification_> justificationMapping) Sets a custom function to apply on a constraint match to justify it. -
Uses of ConstraintJustification in org.optaplanner.core.api.score.stream.uni
Modifier and TypeMethodDescription<ConstraintJustification_ extends ConstraintJustification>
UniConstraintBuilder<A,Score_> UniConstraintBuilder.justifyWith
(BiFunction<A, Score_, ConstraintJustification_> justificationMapping) Sets a custom function to apply on a constraint match to justify it. -
Uses of ConstraintJustification in org.optaplanner.core.impl.score
-
Uses of ConstraintJustification in org.optaplanner.core.impl.score.constraint
Modifier and TypeMethodDescriptionDefaultConstraintMatchTotal.addConstraintMatch
(ConstraintJustification justification, Collection<Object> indictedObjects, Score_ score) Creates aConstraintMatch
and adds it to the collection returned byDefaultConstraintMatchTotal.getConstraintMatchSet()
.