public class NaLoExpression extends LoExpression
LoExpression.Operatorme, model, opNO_CHILD| Constructor and Description |
|---|
NaLoExpression(LoExpression.Operator op,
ReExpression... es)
Builds a n-ary expression
|
NaLoExpression(LoExpression.Operator op,
ReExpression e,
ReExpression... es)
Builds a n-ary expression
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
beval(int[] values,
Map<IntVar,Integer> map) |
BoolVar |
boolVar() |
Constraint |
decompose() |
void |
extractVar(HashSet<IntVar> variables)
Extract the variables from this expression
|
Model |
getModel()
Return the associated model
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, extension, ieval, iff, ift, ift, ift, ift, imp, intVar, not, or, post, xorabs, add, add, add, dist, dist, div, div, eq, eq, eq, ge, ge, getExpressionChild, getNoChild, gt, gt, isExpressionLeaf, le, le, lt, lt, max, max, max, min, min, min, mod, mod, mul, mul, mul, ne, ne, neg, pow, pow, sqr, sub, subpublic NaLoExpression(LoExpression.Operator op, ReExpression... es)
op - an operatores - some expressionspublic NaLoExpression(LoExpression.Operator op, ReExpression e, ReExpression... es)
op - an operatores - some expressionspublic Model getModel()
LoExpressiongetModel in interface ArExpressiongetModel in interface ReExpressiongetModel in class LoExpressionpublic BoolVar boolVar()
boolVar in interface ReExpressionboolVar in class LoExpressionBoolVar.
If necessary, it creates intermediary variable and posts intermediary constraintspublic void extractVar(HashSet<IntVar> variables)
ReExpressionvariables - set of variablespublic Constraint decompose()
public boolean beval(int[] values,
Map<IntVar,Integer> map)
values - int values to evaluatemap - mapping between variables of the topmost expression and position in valuesCopyright © 2018. All rights reserved.