Interface ConstraintBuilder
- All Known Subinterfaces:
BiConstraintBuilder<A,
,B, Score_> QuadConstraintBuilder<A,
,B, C, D, Score_> TriConstraintBuilder<A,
,B, C, Score_> UniConstraintBuilder<A,
Score_>
public interface ConstraintBuilder
-
Method Summary
Modifier and TypeMethodDescriptionasConstraint
(String constraintName) Builds aConstraint
from the constraint stream.asConstraint
(String constraintPackage, String constraintName) Builds aConstraint
from the constraint stream.
-
Method Details
-
asConstraint
Builds aConstraint
from the constraint stream. TheConstraint.getConstraintPackage()
defaults to the package of thePlanningSolution
class.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justification- Returns:
- never null
-
asConstraint
Builds aConstraint
from the constraint stream.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintPackage
- never null- Returns:
- never null
-