Package org.projog.clp
Interface LeafExpression
- All Superinterfaces:
Constraint,Expression
- All Known Implementing Classes:
FixedValue,Variable
-
Method Summary
Modifier and TypeMethodDescriptionreplace(Function<LeafExpression, LeafExpression> function) Returns newConstraintwithLeafExpressions in thisConstraintreplaced with values returned from the given function.Methods inherited from interface org.projog.clp.Constraint
enforce, getMax, getMin, prevent, reify, setMax, setMin, walkMethods inherited from interface org.projog.clp.Expression
setNot
-
Method Details
-
replace
Description copied from interface:ConstraintReturns newConstraintwithLeafExpressions in thisConstraintreplaced with values returned from the given function.- Specified by:
replacein interfaceConstraint- Specified by:
replacein interfaceExpression- Parameters:
function- returns theLeafExpressionto use as a replacement for theLeafExpressionit is called with, ornullif the originalLeafExpressionshould continue to be used.- Returns:
- a new
ConstraintwithLeafExpressions in thisConstraintreplaced with versions returned fromfunction.
-