Uses of Interface
org.xcsp.common.IVar
-
-
Uses of IVar in org.xcsp.common
Subinterfaces of IVar in org.xcsp.common Modifier and Type Interface Description static interfaceIVar.VarThis is the root interface of any integer variable, handled either in the parser or the modeler.static interfaceIVar.VarSymbolicThis is the root interface of any symbolic variable, handled either in the parser or the modeler.Fields in org.xcsp.common declared as IVar Modifier and Type Field Description IVarCondition.ConditionVar. xThe variable that represents the operand of the condition.Methods in org.xcsp.common with type parameters of type IVar Modifier and Type Method Description <T extends IVar>
T[]Range. provideVars(java.util.function.IntFunction<T> f)Deprecated.Methods in org.xcsp.common that return IVar Modifier and Type Method Description IVarCondition.ConditionVar. involvedVar()default IVarCondition. involvedVar()Returns the variable involved in the condition, if one is present,nullotherwise.<T extends IVar>
T[]Range. provideVars(java.util.function.IntFunction<T> f)Deprecated.Methods in org.xcsp.common that return types with arguments of type IVar Modifier and Type Method Description static XNodeParent<IVar>Condition. toNode(IVar x, Condition condition)Methods in org.xcsp.common with parameters of type IVar Modifier and Type Method Description static XNodeParent<IVar>Condition. toNode(IVar x, Condition condition)Constructors in org.xcsp.common with parameters of type IVar Constructor Description ConditionVar(Types.TypeConditionOperatorRel operator, IVar x)Constructs a condition composed of the specified relational operator and the specified variable as (right) operand -
Uses of IVar in org.xcsp.common.predicates
Classes in org.xcsp.common.predicates with type parameters of type IVar Modifier and Type Class Description classXNode<V extends IVar>This class is used for representing a node of a syntactic tree, which is built for functional expressions, and used especially with element<intension>.classXNodeLeaf<V extends IVar>The class used for representing a leaf node in a syntactic tree.classXNodeParent<V extends IVar>The class used for representing a parent node in a syntactic tree.classXNodeParentSpecial<V extends IVar>Fields in org.xcsp.common.predicates with type parameters of type IVar Modifier and Type Field Description static XNodeLeaf<IVar>MatcherInterface. add_mul_valsstatic XNodeLeaf<IVar>MatcherInterface. add_mul_varsstatic XNodeLeaf<IVar>MatcherInterface. add_varsstatic XNodeLeaf<IVar>MatcherInterface. anystatic XNodeLeaf<IVar>MatcherInterface. any_add_valstatic XNodeLeaf<IVar>MatcherInterface. anycstatic XNodeLeaf<IVar>MatcherInterface. logic_varsstatic XNodeLeaf<IVar>MatcherInterface. max_varsstatic XNodeLeaf<IVar>MatcherInterface. min_varsstatic XNodeLeaf<IVar>MatcherInterface. mul_varsstatic XNodeLeaf<IVar>MatcherInterface. notstatic XNodeLeaf<IVar>MatcherInterface. set_valsstatic XNodeLeaf<IVar>MatcherInterface. substatic XNodeLeaf<IVar>MatcherInterface. valstatic XNodeLeaf<IVar>MatcherInterface. varstatic XNodeLeaf<IVar>MatcherInterface. var_add_valstatic XNodeLeaf<IVar>MatcherInterface. varOrValMethods in org.xcsp.common.predicates with type parameters of type IVar Modifier and Type Method Description static <V extends IVar>
XNodeLeaf<V>XNode. longLeaf(long value)static <V extends IVar>
XNodeParent<V>XNode. node(MatcherInterface.AbstractOperation type, XNode<V> son)static <V extends IVar>
XNodeParent<V>XNode. node(MatcherInterface.AbstractOperation type, XNode<V> left, XNode<V> right)static <V extends IVar>
XNodeParent<V>XNode. node(Types.TypeExpr type, List<XNode<V>> sons)static <V extends IVar>
XNodeParent<V>XNode. node(Types.TypeExpr type, java.util.stream.Stream<XNode<V>> sons)static <V extends IVar>
XNodeParent<V>XNode. node(Types.TypeExpr type, XNode<V> son)static <V extends IVar>
XNodeParent<V>XNode. node(Types.TypeExpr type, XNode<V>[] sons)static <V extends IVar>
XNodeParent<V>XNode. node(Types.TypeExpr type, XNode<V> left, XNode<V> right)static <V extends IVar>
XNodeLeaf<V>XNode. specialLeaf(String value)Methods in org.xcsp.common.predicates that return IVar Modifier and Type Method Description V[]XNode. arrayOfVars()Returns the list of variables in the tree rooted by this node, in the order they are encountered, ornullif there is none.V[]XNode. vars()Returns the set of variables in the tree rooted by this node, in the order they are collected, ornullif there is none.Methods in org.xcsp.common.predicates that return types with arguments of type IVar Modifier and Type Method Description static XNodeParent<IVar>XNodeParent. abs(Object operand)static XNodeParent<IVar>XNodeParent. add(Object... operands)static XNodeParent<IVar>XNodeParent. and(Object... operands)static XNodeParent<IVar>XNodeParent. build(Types.TypeExpr type, Object... os)static XNodeParent<IVar>XNodeParent. dist(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. div(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. eq(Object... operands)static XNodeParent<IVar>XNodeParent. ge(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. gt(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. iff(Object... operands)static XNodeParent<IVar>XNodeParent. ifThenElse(Object operand1, Object operand2, Object operand3)static XNodeParent<IVar>XNodeParent. imp(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. in(Object var, Object set)static XNodeParent<IVar>XNodeParent. le(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. lt(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. max(Object... operands)static XNodeParent<IVar>XNodeParent. min(Object... operands)static XNodeParent<IVar>XNodeParent. mod(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. mul(Object... operands)static XNodeParent<IVar>XNodeParent. ne(Object... operands)static XNodeParent<IVar>XNodeParent. neg(Object operand)static XNodeParent<IVar>XNodeParent. not(Object operand)static XNodeParent<IVar>XNodeParent. notin(Object var, Object set)static XNodeParent<IVar>XNodeParent. or(Object... operands)static XNodeParent<IVar>XNodeParent. pow(Object operand1, Object operand2)static XNodeParent<IVar>XNodeParent. scalar(int[] t1, Object[] t2)static XNode<IVar>XNodeParent. set(int[] operands)static XNode<IVar>XNodeParent. set(Object... operands)static XNodeParent<IVar>XNodeParent. sqr(Object operand)static XNodeParent<IVar>XNodeParent. sub(Object operand1, Object operand2)XNode<IVar>MatcherInterface.Matcher. target()XNode<IVar>MatcherInterface. target()Returns the target tree, which may possibly involve some form of abstraction by means of special nodes.static XNodeParent<IVar>XNodeParent. xor(Object... operands)Methods in org.xcsp.common.predicates with parameters of type IVar Modifier and Type Method Description booleanXNode. exactlyVars(V[] t)Returntrueiff the sequence of variables (without duplicates) encountered in the tree rooted by this node is exactly the specified array.abstract StringXNode. toPostfixExpression(IVar[] scopeForAbstraction)Returns a string denoting the post-fixed expression of the tree rooted by this node.StringXNodeLeaf. toPostfixExpression(IVar[] scopeForAbstraction)StringXNodeParent. toPostfixExpression(IVar[] scopeForAbstraction)Method parameters in org.xcsp.common.predicates with type arguments of type IVar Modifier and Type Method Description default booleanMatcherInterface. matches(XNode<? extends IVar> tree)Returnstrueif the predefined target tree matches the specified (source) tree.default booleanMatcherInterface. matching(XNode<? extends IVar> source, XNode<IVar> target, int level)Returnstrueif the specified source tree matches the specified target tree (at the specified level).booleanMatcherInterface.Matcher. validForSpecialTargetNode(XNode<? extends IVar> node, int level)booleanMatcherInterface. validForSpecialTargetNode(XNode<? extends IVar> node, int level)Returnstrueif the specified node (considered at the specified level/depth) is valid with respect to the target tree when assuming that the corresponding node in the target tree is a special node.Constructor parameters in org.xcsp.common.predicates with type arguments of type IVar Constructor Description Matcher(XNode<IVar> target)Builds aMatcherobject with the specified target tree.Matcher(XNode<IVar> target, java.util.function.BiPredicate<XNode<? extends IVar>,Integer> p)Builds aMatcherobject with the specified target tree.Matcher(XNode<IVar> target, java.util.function.BiPredicate<XNode<? extends IVar>,Integer> p)Builds aMatcherobject with the specified target tree.TreeEvaluator(XNode<? extends IVar> tree)TreeEvaluator(XNode<? extends IVar> tree, Map<String,Integer> mapOfSymbols) -
Uses of IVar in org.xcsp.modeler
Methods in org.xcsp.modeler with parameters of type IVar Modifier and Type Method Description protected voidCompiler. putInMap(IVar x, Map<IVar,String> map)Method parameters in org.xcsp.modeler with type arguments of type IVar Modifier and Type Method Description protected voidCompiler. putInMap(IVar x, Map<IVar,String> map) -
Uses of IVar in org.xcsp.modeler.api
Methods in org.xcsp.modeler.api with type parameters of type IVar Modifier and Type Method Description default <T extends IVar>
T[]ProblemAPIOnVars. clean(T[] vars)Builds and returns a 1-dimensional array of variables from the specified 1-dimensional array of variables, by discardingnullvalues.default <T extends IVar,U>
T[]ProblemAPIOnVars. singleVariablesFrom(Collection<U> c, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified collection.default <T extends IVar,U>
T[]ProblemAPIOnVars. singleVariablesFrom(java.util.stream.Stream<U> stream, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified stream.default <T extends IVar>
T[]ProblemAPIOnVars. singleVariablesIn(Object... objects)Builds and returns a 1-dimensional array of variables from the specified sequence of parameters.default <T extends IVar>
T[]ProblemAPIOnVars. variablesFrom(int[] t, java.util.function.Function<Integer,Object> f)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar,U>
T[]ProblemAPIOnVars. variablesFrom(Collection<U> c, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified collection.default <T extends IVar,U>
T[]ProblemAPIOnVars. variablesFrom(java.util.stream.IntStream stream, java.util.function.Function<Integer,Object> f)Builds and returns a 1-dimensional array of variables from the specified stream.default <T extends IVar,U>
T[]ProblemAPIOnVars. variablesFrom(java.util.stream.Stream<U> stream, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified stream.default <T extends IVar>
T[]ProblemAPIOnVars. variablesFrom(Range r, java.util.function.Function<Integer,Object> f)Returns a 1-dimensional array of variables, obtained after collecting the variables returned by the specified function when executed on all values in this range.default <T extends IVar,U>
T[]ProblemAPIOnVars. variablesFrom(U[] t, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. variablesIn(Object object, Object... otherObjects)Builds and returns a 1-dimensional array of variables from the specified sequence of parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, Object... others)Builds and returns a 1-dimensional array of variables from the specified sequence of parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, T x)Builds and returns a 1-dimensional array of variables from the specified parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, T[] x)Builds and returns a 1-dimensional array of variables from the specified parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, T[][] x)Builds and returns a 1-dimensional array of variables from the specified parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(java.util.stream.Stream<T> stream)Returns a 1-dimensional array of variables by collecting them in order from the specified stream.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T[][] vars)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T[][][] vars)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T x, T... others)Returns a 1-dimensional array containing the specified variables.Methods in org.xcsp.modeler.api that return IVar Modifier and Type Method Description default <T extends IVar>
T[]ProblemAPIOnVars. clean(T[] vars)Builds and returns a 1-dimensional array of variables from the specified 1-dimensional array of variables, by discardingnullvalues.default <T extends IVar,U>
T[]ProblemAPIOnVars. singleVariablesFrom(Collection<U> c, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified collection.default <T extends IVar,U>
T[]ProblemAPIOnVars. singleVariablesFrom(java.util.stream.Stream<U> stream, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified stream.default <T extends IVar>
T[]ProblemAPIOnVars. singleVariablesIn(Object... objects)Builds and returns a 1-dimensional array of variables from the specified sequence of parameters.default <T extends IVar>
T[]ProblemAPIOnVars. variablesFrom(int[] t, java.util.function.Function<Integer,Object> f)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar,U>
T[]ProblemAPIOnVars. variablesFrom(Collection<U> c, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified collection.default <T extends IVar,U>
T[]ProblemAPIOnVars. variablesFrom(java.util.stream.IntStream stream, java.util.function.Function<Integer,Object> f)Builds and returns a 1-dimensional array of variables from the specified stream.default <T extends IVar,U>
T[]ProblemAPIOnVars. variablesFrom(java.util.stream.Stream<U> stream, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified stream.default <T extends IVar>
T[]ProblemAPIOnVars. variablesFrom(Range r, java.util.function.Function<Integer,Object> f)Returns a 1-dimensional array of variables, obtained after collecting the variables returned by the specified function when executed on all values in this range.default <T extends IVar,U>
T[]ProblemAPIOnVars. variablesFrom(U[] t, java.util.function.Function<U,Object> f)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. variablesIn(Object object, Object... otherObjects)Builds and returns a 1-dimensional array of variables from the specified sequence of parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, Object... others)Builds and returns a 1-dimensional array of variables from the specified sequence of parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, T x)Builds and returns a 1-dimensional array of variables from the specified parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, T[] x)Builds and returns a 1-dimensional array of variables from the specified parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, T[][] x)Builds and returns a 1-dimensional array of variables from the specified parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(java.util.stream.Stream<T> stream)Returns a 1-dimensional array of variables by collecting them in order from the specified stream.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T[][] vars)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T[][][] vars)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T x, T... others)Returns a 1-dimensional array containing the specified variables.Methods in org.xcsp.modeler.api that return types with arguments of type IVar Modifier and Type Method Description default XNodeParent<IVar>ProblemAPI. abs(Object operand)Returns the root of a syntactic tree built with the unary operatorabsapplied to the specified operand.default XNodeParent<IVar>ProblemAPI. add(Object... operands)Returns the root of a syntactic tree built with the operatoraddapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. and(Object... operands)Returns the root of a syntactic tree built with the operatorandapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. dist(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatordistapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. div(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatordivapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. eq(Object... operands)Returns the root of a syntactic tree built with the operatoreqapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. ge(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatorgeapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. gt(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatorgtapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. iff(Object... operands)Returns the root of a syntactic tree built with the operatoriffapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. ifThenElse(Object operand1, Object operand2, Object operand3)Returns the root of a syntactic tree built with the binary operatorifapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. imp(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatorimpapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. in(Object var, Object set)Returns the root of a syntactic tree built with the operatorinapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. knightAttack(IVar x, IVar y, int order)Returns the root of a syntactic tree that represents the predicate ensuring that the specified variables are put in two cells of a flattened matrix (whose order is specified) at a knight distance.default XNodeParent<IVar>ProblemAPI. le(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatorleapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. lt(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatorltapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. max(Object... operands)Returns the root of a syntactic tree built with the operatormaxapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. min(Object... operands)Returns the root of a syntactic tree built with the operatorminapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. mod(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatormodapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. mul(Object... operands)Returns the root of a syntactic tree built with the operatormulapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. ne(Object... operands)Returns the root of a syntactic tree built with the operatorneapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. neg(Object operand)Returns the root of a syntactic tree built with the unary operatornegapplied to the specified operand.default XNodeParent<IVar>ProblemAPI. not(Object operand)Returns the root of a syntactic tree built with the unary operatornotapplied to the specified operand.default XNodeParent<IVar>ProblemAPI. notin(Object var, Object set)Returns the root of a syntactic tree built with the operatornotinapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. or(Object... operands)Returns the root of a syntactic tree built with the operatororapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. pow(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatorpowapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. queenAttack(IVar x, IVar y, int order)Returns the root of a syntactic tree that represents the predicate ensuring that the specified variables are put in two distinct cells of a flattened matrix (whose order is specified) on the same row, column or diagonal.default XNode<IVar>ProblemAPI. set(int[] operands)Returns the node of a syntactic tree built with the operatorsetapplied to the integers from the specified array.default XNode<IVar>ProblemAPI. set(Object... operands)Returns the root of a syntactic tree built with the operatorsetapplied to the specified operands.default XNodeParent<IVar>ProblemAPI. sqr(Object operand)Returns the root of a syntactic tree built with the unary operatorsqrapplied to the specified operand.default XNodeParent<IVar>ProblemAPI. sub(Object operand1, Object operand2)Returns the root of a syntactic tree built with the binary operatorsubapplied to the specified operands.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(int[] t, java.util.function.Function<Integer,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each integer of the specified array.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(Collection<Integer> c, java.util.function.Function<Integer,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each integer of the specified collection.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(java.util.stream.IntStream stream, java.util.function.Function<Integer,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each integer of the specified stream.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(IVar[] t, java.util.function.Function<IVar,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each variable of the specified array.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(Range r, java.util.function.Function<Integer,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each integer of the specified range.default XNodeParent<IVar>ProblemAPI. xor(Object... operands)Returns the root of a syntactic tree built with the operatorxorapplied to the specified operands.Methods in org.xcsp.modeler.api with parameters of type IVar Modifier and Type Method Description default <T extends IVar>
T[]ProblemAPIOnVars. clean(T[] vars)Builds and returns a 1-dimensional array of variables from the specified 1-dimensional array of variables, by discardingnullvalues.default voidProblemAPI. decisionVariables(IVar[] list)Sets the specified variables as those on which a solver should branch in priority.default voidProblemAPI. decisionVariables(IVar[][] list)Sets the specified variables as those on which a solver should branch in priority.default XNodeParent<IVar>ProblemAPI. knightAttack(IVar x, IVar y, int order)Returns the root of a syntactic tree that represents the predicate ensuring that the specified variables are put in two cells of a flattened matrix (whose order is specified) at a knight distance.default ObjEntities.ObjEntityProblemAPI. maximize(IVar x)Builds an objective (function) to maximize: the value of the specified variable.default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, IVar... list)Builds an objective (function) to maximize: the objective is defined by the specified type on the specified array of variables.default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, IVar[][] list)Builds an objective (function) to maximize: the objective is defined by the specified type on the specified 2-dimensional array of variables that will be flattened (i.e., converted into a 1-dimensional array of variables).default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, IVar[][][] list)Builds an objective (function) to maximize: the objective is defined by the specified type on the specified 3-dimensional array of variables that will be flattened (i.e., converted into a 1-dimensional array of variables).default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, IVar[][][] list, int[][][] coeffs)Builds an objective (function) to maximize: the objective is defined by the specified type on the specified 3-dimensional array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, IVar[][][] list, int[][][] coeffs, FunctionalInterfaces.Intx3Predicate p)Builds an objective (function) to maximize: the objective is defined by the specified type on the specified 3-dimensional array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, IVar[][] list, int[][] coeffs)Builds an objective (function) to maximize: the objective is defined by the specified type on the specified 2-dimensional array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, IVar[][] list, int[][] coeffs, FunctionalInterfaces.Intx2Predicate p)Builds an objective (function) to maximize: the objective is defined by the specified type on the specified 2-dimensional array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, IVar[] list, int[] coeffs)Builds an objective (function) to maximize: the objective is defined by the specified type on the specified array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. minimize(IVar x)Builds an objective (function) to minimize: the value of the specified variable.default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, IVar... list)Builds an objective (function) to minimize: the objective is defined by the specified type on the specified array of variables.default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, IVar[][] list)Builds an objective (function) to minimize: the objective is defined by the specified type on the specified 2-dimensional array of variables that will be flattened (i.e., converted into a 1-dimensional array of variables).default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, IVar[][][] list)Builds an objective (function) to minimize: the objective is defined by the specified type on the specified 3-dimensional array of variables that will be flattened (i.e., converted into a 1-dimensional array of variables).default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, IVar[][][] list, int[][][] coeffs)Builds an objective (function) to minimize: the objective is defined by the specified type on the specified 3-dimensional array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, IVar[][][] list, int[][][] coeffs, FunctionalInterfaces.Intx3Predicate p)Builds an objective (function) to minimize: the objective is defined by the specified type on the specified 3-dimensional array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, IVar[][] list, int[][] coeffs)Builds an objective (function) to minimize: the objective is defined by the specified type on the specified 2-dimensional array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, IVar[][] list, int[][] coeffs, FunctionalInterfaces.Intx2Predicate p)Builds an objective (function) to minimize: the objective is defined by the specified type on the specified 2-dimensional array of variables, each of them being given a coefficient.default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, IVar[] list, int[] coeffs)Builds an objective (function) to minimize: the objective is defined by the specified type on the specified array of variables, each of them being given a coefficient.default XNodeParent<IVar>ProblemAPI. queenAttack(IVar x, IVar y, int order)Returns the root of a syntactic tree that represents the predicate ensuring that the specified variables are put in two distinct cells of a flattened matrix (whose order is specified) on the same row, column or diagonal.default CtrEntities.CtrEntityProblemAPI. slide(IVar[] list, Range range, java.util.function.IntFunction<CtrEntities.CtrEntity> template)Builds a meta-constraintslidefrom the specified arguments.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(IVar[] t, java.util.function.Function<IVar,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each variable of the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, T[] x)Builds and returns a 1-dimensional array of variables from the specified parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(Object first, T[][] x)Builds and returns a 1-dimensional array of variables from the specified parameters.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T[][] vars)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T[][][] vars)Builds and returns a 1-dimensional array of variables from the specified array.default <T extends IVar>
T[]ProblemAPIOnVars. vars(T x, T... others)Returns a 1-dimensional array containing the specified variables.Method parameters in org.xcsp.modeler.api with type arguments of type IVar Modifier and Type Method Description default CtrEntities.CtrEntityProblemAPI. allDifferent(java.util.stream.Stream<XNode<IVar>> trees)Builds a constraintallDifferenton the specified (stream of) syntactic trees (predicates): the predicates, when evaluated, must all take different values.default CtrEntities.CtrAloneProblemAPI. extension(XNodeParent<IVar> tree)Builds a constraintextensionfrom the specified syntactic tree (predicate).default CtrEntities.CtrAloneProblemAPI. extensionDisjunction(List<XNodeParent<IVar>> trees)default CtrEntities.CtrEntityProblemAPI. intension(XNodeParent<IVar> tree)Builds a constraintintensionfrom the specified argument that represents the root of a syntactic tree.default ObjEntities.ObjEntityProblemAPI. maximize(XNode<IVar> tree)default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, java.util.stream.Stream<XNode<IVar>> trees)default ObjEntities.ObjEntityProblemAPI. maximize(Types.TypeObjective type, java.util.stream.Stream<XNode<IVar>> trees, int[] coeffs)default ObjEntities.ObjEntityProblemAPI. minimize(XNode<IVar> tree)default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, java.util.stream.Stream<XNode<IVar>> trees)default ObjEntities.ObjEntityProblemAPI. minimize(Types.TypeObjective type, java.util.stream.Stream<XNode<IVar>> trees, int[] coeffs)default CtrEntities.CtrEntityProblemAPI. sum(java.util.stream.Stream<XNode<IVar>> trees, int[] coeffs, Condition condition)Builds a constraintsumfrom the specified arguments: the weighted sum must respect the specified condition.default CtrEntities.CtrEntityProblemAPI. sum(java.util.stream.Stream<XNode<IVar>> trees, int[] coeffs, Types.TypeConditionOperatorRel op, long limit)Builds a constraintsumfrom the specified arguments: the weighted sum must respect the condition expressed by the specified operator and the specified limit.default CtrEntities.CtrEntityProblemAPI. sum(java.util.stream.Stream<XNode<IVar>> trees, int[] coeffs, Types.TypeConditionOperatorRel op, IVar.Var limit)Builds a constraintsumfrom the specified arguments: the weighted sum must respect the condition expressed by the specified operator and the specified limit.default CtrEntities.CtrEntityProblemAPI. sum(java.util.stream.Stream<XNode<IVar>> trees, Condition condition)Builds a constraintsumfrom the specified arguments: the (simple) sum must respect the specified condition.default CtrEntities.CtrEntityProblemAPI. sum(java.util.stream.Stream<XNode<IVar>> trees, Types.TypeConditionOperatorRel op, long limit)Builds a constraintsumfrom the specified arguments: the (simple) sum must respect the condition expressed by the specified operator and the specified limit.default CtrEntities.CtrEntityProblemAPI. sum(java.util.stream.Stream<XNode<IVar>> trees, Types.TypeConditionOperatorRel op, IVar.Var limit)Builds a constraintsumfrom the specified arguments: the (simple) sum must respect the condition expressed by the specified operator and the specified limit.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(int[] t, java.util.function.Function<Integer,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each integer of the specified array.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(Collection<Integer> c, java.util.function.Function<Integer,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each integer of the specified collection.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(java.util.stream.IntStream stream, java.util.function.Function<Integer,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each integer of the specified stream.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(IVar[] t, java.util.function.Function<IVar,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each variable of the specified array.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(IVar[] t, java.util.function.Function<IVar,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each variable of the specified array.default java.util.stream.Stream<XNode<IVar>>ProblemAPI. treesFrom(Range r, java.util.function.Function<Integer,XNode<IVar>> f)Returns a stream of syntactic trees (predicates) built by applying the specified function to each integer of the specified range. -
Uses of IVar in org.xcsp.modeler.definitions
Methods in org.xcsp.modeler.definitions that return IVar Modifier and Type Method Description default IVar[]IRootForCtrAndObj. scope()Methods in org.xcsp.modeler.definitions with parameters of type IVar Modifier and Type Method Description static ICtr.ICtrAllDifferentICtr.ICtrAllDifferent. buildFrom(IVar[] scope, String key1, Object value1, String except)static ICtr.ICtrAllEqualICtr.ICtrAllEqual. buildFrom(IVar[] scope, String key, Object value)static ICtr.ICtrCardinalityICtr.ICtrCardinality. buildFrom(IVar[] scope, String list, String values, Boolean closed, String occurs)static ICtr.ICtrChannelICtr.ICtrChannel. buildFrom(IVar[] scope, String list, Integer startIndex, String list2, Integer startIndex2, Object value)static ICtr.ICtrCircuitICtr.ICtrCircuit. buildFrom(IVar[] scope, String list, Integer startIndex, Object size)static ICtr.ICtrClauseICtr.ICtrClause. buildFrom(IVar[] scope, String list)static ICtr.ICtrCountICtr.ICtrCount. buildFrom(IVar[] scope, String list, Object values, Condition condition)static ICtr.ICtrCumulativeICtr.ICtrCumulative. buildFrom(IVar[] scope, String origins, String lengths, String ends, String heights, Condition condition)static ICtr.ICtrElementICtr.ICtrElement. buildFrom(IVar[] scope, String list, Integer startIndex, Object index, Types.TypeRank rank, Condition condition)static ICtr.ICtrElementMatrixICtr.ICtrElementMatrix. buildFrom(IVar[] scope, Object matrix, Integer startRowIndex, Object rowIndex, Integer startColIndex, Object colIndex, Object value)static ICtr.ICtrExtensionICtr.ICtrExtension. buildFrom(IVar[] scope, String list, int arity, int[][] tuples, boolean positive)static ICtr.ICtrExtensionICtr.ICtrExtension. buildFrom(IVar[] scope, String list, int arity, String[][] tuples, boolean positive)static ICtr.ICtrIfThenICtr.ICtrIfThen. buildFrom(IVar[] scope, CtrEntities.CtrAlone ca1, CtrEntities.CtrAlone ca2)static ICtr.ICtrIfThenElseICtr.ICtrIfThenElse. buildFrom(IVar[] scope, CtrEntities.CtrAlone ca1, CtrEntities.CtrAlone ca2, CtrEntities.CtrAlone ca3)static ICtr.ICtrInstantiationICtr.ICtrInstantiation. buildFrom(IVar[] scope, String list, String values)static ICtr.ICtrIntensionICtr.ICtrIntension. buildFrom(IVar[] scope, XNodeParent<IVar> tree)static ICtr.ICtrMaximumICtr.ICtrMaximum. buildFrom(IVar[] scope, String list, Integer startIndex, Object index, Types.TypeRank rank, Condition condition)static ICtr.ICtrMddICtr.ICtrMdd. buildFrom(IVar[] scope, String list, String transitions)static ICtr.ICtrMinimumICtr.ICtrMinimum. buildFrom(IVar[] scope, String list, Integer startIndex, Object index, Types.TypeRank rank, Condition condition)static ICtr.ICtrNoOverlapICtr.ICtrNoOverlap. buildFrom(IVar[] scope, String origins, String lengths, Boolean zeroIgnored)static ICtr.ICtrNValuesICtr.ICtrNValues. buildFrom(IVar[] scope, String list, String except, Condition condition)static ICtr.ICtrOrderedICtr.ICtrOrdered. buildFrom(IVar[] scope, String key1, Object value1, Object lengths, Types.TypeOperatorRel operator)static ICtr.ICtrRegularICtr.ICtrRegular. buildFrom(IVar[] scope, String list, String transitions, String startState, String[] finalStates)static ICtr.ICtrSlideICtr.ICtrSlide. buildFrom(IVar[] scope, Boolean circular, IVar[][] lists, int[] offsets, int[] collects, CtrEntities.CtrAlone[] cas)static ICtr.ICtrSmartICtr.ICtrSmart. buildFrom(IVar[] scope, String list, String[] rows)static ICtr.ICtrStretchICtr.ICtrStretch. buildFrom(IVar[] scope, String list, String values, String widths, String patterns)static ICtr.ICtrSumICtr.ICtrSum. buildFrom(IVar[] scope, String list, Object coeffs, Condition condition)static IObj.IObjFunctionalIObj.IObjFunctional. buildFrom(IVar[] scope, boolean minimize, XNode<IVar> tree)static IObj.IObjSpecializedIObj.IObjSpecialized. buildFrom(IVar[] scope, boolean minimize, Types.TypeObjective type, String list, String coeffs)Method parameters in org.xcsp.modeler.definitions with type arguments of type IVar Modifier and Type Method Description static ICtr.ICtrIntensionICtr.ICtrIntension. buildFrom(IVar[] scope, XNodeParent<IVar> tree)static IObj.IObjFunctionalIObj.IObjFunctional. buildFrom(IVar[] scope, boolean minimize, XNode<IVar> tree) -
Uses of IVar in org.xcsp.modeler.entities
Fields in org.xcsp.modeler.entities declared as IVar Modifier and Type Field Description IVar[]VarEntities.VarArray. flatVarsIVarVarEntities.VarAlone. varFields in org.xcsp.modeler.entities with type parameters of type IVar Modifier and Type Field Description Map<IVar,VarEntities.VarAlone>VarEntities. varToVarAloneMap<IVar,VarEntities.VarArray>VarEntities. varToVarArrayMethods in org.xcsp.modeler.entities with parameters of type IVar Modifier and Type Method Description StringVarEntities. compact(IVar[] vars)String[]VarEntities. compact(IVar[][] vars)protected StringVarEntities.VarArray. compactFormOf(IVar[] t)StringVarEntities. compactMatrix(IVar[][] matrix)StringVarEntities. compactOrdered(IVar[] vars)String[]VarEntities. compactOrdered(IVar[][] vars)voidVarEntities. newVarAloneEntity(String id, IVar var, String note, Types.TypeClass... classes)protected voidVarEntities.VarArray. updateRanges(IVar[] t)Constructors in org.xcsp.modeler.entities with parameters of type IVar Constructor Description VarAlone(String id, IVar var, String note, Types.TypeClass... classes) -
Uses of IVar in org.xcsp.modeler.implementation
Classes in org.xcsp.modeler.implementation that implement IVar Modifier and Type Class Description static classProblemIMP3.MVariablestatic classProblemIMP3.MVariable.MVarIntegerstatic classProblemIMP3.MVariable.MVarSymbolicFields in org.xcsp.modeler.implementation declared as IVar Modifier and Type Field Description IVar[]ProblemIMP.Annotations. decisionMethods in org.xcsp.modeler.implementation with type parameters of type IVar Modifier and Type Method Description <T extends IVar>
T[]ProblemIMP. clean(T[] vars)<T extends IVar>
T[]ProblemIMP. distinct(T[] vars)<T extends IVar>
T[]ProblemIMP. distinctSorted(T[] vars)<T extends IVar>
T[]ProblemIMP. vars(Object... objects)Builds and returns a 1-dimensional array of variables from the specified sequence of parameters.<T extends IVar>
T[]ProblemIMP. vars(T[][] x)Methods in org.xcsp.modeler.implementation that return IVar Modifier and Type Method Description <T extends IVar>
T[]ProblemIMP. clean(T[] vars)<T extends IVar>
T[]ProblemIMP. distinct(T[] vars)<T extends IVar>
T[]ProblemIMP. distinctSorted(T[] vars)IVar[]ProblemIMP. scope(Object... objects)<T extends IVar>
T[]ProblemIMP. vars(Object... objects)Builds and returns a 1-dimensional array of variables from the specified sequence of parameters.<T extends IVar>
T[]ProblemIMP. vars(T[][] x)Methods in org.xcsp.modeler.implementation with parameters of type IVar Modifier and Type Method Description <T extends IVar>
T[]ProblemIMP. clean(T[] vars)voidProblemIMP. decisionVariables(IVar[] list)<T extends IVar>
T[]ProblemIMP. distinct(T[] vars)<T extends IVar>
T[]ProblemIMP. distinctSorted(T[] vars)abstract ObjEntities.ObjEntityProblemIMP. maximize(IVar x)abstract ObjEntities.ObjEntityProblemIMP. maximize(Types.TypeObjective type, IVar[] list)abstract ObjEntities.ObjEntityProblemIMP. maximize(Types.TypeObjective type, IVar[] list, int[] coeffs)ObjEntities.ObjEntityProblemIMP3. maximize(IVar x)ObjEntities.ObjEntityProblemIMP3. maximize(Types.TypeObjective type, IVar[] list)ObjEntities.ObjEntityProblemIMP3. maximize(Types.TypeObjective type, IVar[] list, int[] coeffs)abstract ObjEntities.ObjEntityProblemIMP. minimize(IVar x)abstract ObjEntities.ObjEntityProblemIMP. minimize(Types.TypeObjective type, IVar[] list)abstract ObjEntities.ObjEntityProblemIMP. minimize(Types.TypeObjective type, IVar[] list, int[] coeffs)ObjEntities.ObjEntityProblemIMP3. minimize(IVar x)ObjEntities.ObjEntityProblemIMP3. minimize(Types.TypeObjective type, IVar[] list)ObjEntities.ObjEntityProblemIMP3. minimize(Types.TypeObjective type, IVar[] list, int[] coeffs)abstract CtrEntities.CtrEntityProblemIMP. slide(IVar[] list, Range range, java.util.function.IntFunction<CtrEntities.CtrEntity> template)CtrEntities.CtrEntityProblemIMP3. slide(IVar[] list, Range range, java.util.function.IntFunction<CtrEntities.CtrEntity> template)<T extends IVar>
T[]ProblemIMP. vars(T[][] x)Method parameters in org.xcsp.modeler.implementation with type arguments of type IVar Modifier and Type Method Description CtrEntities.CtrAloneProblemIMP. extension(XNodeParent<IVar> tree)CtrEntities.CtrAloneProblemIMP. extensionDisjunction(List<XNodeParent<IVar>> trees)StringProblemIMP.Converter. handle(IVar.Var[] scp, XNodeParent<IVar> tree)abstract CtrEntities.CtrEntityProblemIMP. intension(XNodeParent<IVar> tree)CtrEntities.CtrEntityProblemIMP3. intension(XNodeParent<IVar> tree)abstract ObjEntities.ObjEntityProblemIMP. maximize(XNode<IVar> tree)ObjEntities.ObjEntityProblemIMP3. maximize(XNode<IVar> tree)abstract ObjEntities.ObjEntityProblemIMP. minimize(XNode<IVar> tree)ObjEntities.ObjEntityProblemIMP3. minimize(XNode<IVar> tree) -
Uses of IVar in org.xcsp.parser.entries
Classes in org.xcsp.parser.entries that implement IVar Modifier and Type Class Description static classXVariables.XVarThe class used to represent variables.static classXVariables.XVarIntegerThe following classes are introduced, only for being able to have types for variables in the parser interfacestatic classXVariables.XVarRealstatic classXVariables.XVarSetstatic classXVariables.XVarStochasticstatic classXVariables.XVarSymbolic
-