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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Constraint
asConstraint(String constraintName)
Builds aConstraint
from the constraint stream.Constraint
asConstraint(String constraintPackage, String constraintName)
Builds aConstraint
from the constraint stream.
-
-
-
Method Detail
-
asConstraint
Constraint asConstraint(String constraintName)
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
Constraint asConstraint(String constraintPackage, String constraintName)
Builds aConstraint
from the constraint stream.- Parameters:
constraintName
- never null, shows up inConstraintMatchTotal
during score justificationconstraintPackage
- never null- Returns:
- never null
-
-