Package org.projog.clp
Interface LeafExpression
-
- All Superinterfaces:
Constraint,Expression
- All Known Implementing Classes:
FixedValue,Variable
public interface LeafExpression extends Constraint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LeafExpressionreplace(java.util.function.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, walk
-
Methods inherited from interface org.projog.clp.Expression
setNot
-
-
-
-
Method Detail
-
replace
LeafExpression replace(java.util.function.Function<LeafExpression,LeafExpression> function)
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.
-
-