Package org.projog.clp.math
Class Minus
java.lang.Object
org.projog.clp.math.Minus
- All Implemented Interfaces:
Expression
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongreplace(Function<LeafExpression, LeafExpression> function) Returns aExpressionwithLeafExpressions in thisExpressionreplaced with values returned from the given function.setMax(ConstraintStore s, long value) setMin(ConstraintStore s, long value) toString()voidwalk(Consumer<Expression> consumer) Traverse this expression.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.projog.clp.Expression
setNot
-
Field Details
-
e
-
-
Constructor Details
-
Minus
-
-
Method Details
-
getMin
- Specified by:
getMinin interfaceExpression
-
getMax
- Specified by:
getMaxin interfaceExpression
-
setMin
- Specified by:
setMinin interfaceExpression
-
setMax
- Specified by:
setMaxin interfaceExpression
-
walk
Description copied from interface:ExpressionTraverse this expression.If this expression is a composite then all its sub-expressions will be traversed.
- Specified by:
walkin interfaceExpression- Parameters:
consumer- will be called for eachExpressioncontained within thisExpression.
-
replace
Description copied from interface:ExpressionReturns aExpressionwithLeafExpressions in thisExpressionreplaced with values returned from the given function.- 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
ExpressionwithLeafExpressions in thisExpressionreplaced with versions returned fromfunction.
-
toString
-