public class ValidityChecker extends Object implements IntComparator
| Modifier and Type | Field and Description |
|---|---|
protected int |
arity |
int[] |
sortedidx |
protected ArraySort |
sorter |
protected IntVar[] |
vars |
| Constructor and Description |
|---|
ValidityChecker(int ari,
IntVar[] vars) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(int i1,
int i2)
comparator for primitive integers
|
int |
getPosition(int idx) |
boolean |
isValid(int[] tuple) |
void |
sortvars()
Sort the variable to speedup the check
|
protected IntVar[] vars
public int[] sortedidx
protected int arity
protected ArraySort sorter
public ValidityChecker(int ari,
IntVar[] vars)
public final int getPosition(int idx)
public void sortvars()
public boolean isValid(int[] tuple)
public int compare(int i1,
int i2)
IntComparatorcompare in interface IntComparatorCopyright © 2017. All rights reserved.