| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
package org.sat4j.reader.csp; |
| 27 |
|
|
| 28 |
|
import org.sat4j.specs.ContradictionException; |
| 29 |
|
import org.sat4j.specs.ISolver; |
| 30 |
|
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 1 |
Complexity Density: 0,83 |
|
| 31 |
|
public class Constant implements Evaluable { |
| 32 |
|
|
| 33 |
|
private final int value; |
| 34 |
|
|
| 35 |
|
private final Domain domain; |
| 36 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
| 37 |
0
|
public Constant(int value) {... |
| 38 |
0
|
this.value = value; |
| 39 |
0
|
domain = new SingletonDomain(value); |
| 40 |
|
} |
| 41 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 42 |
0
|
public Domain domain() {... |
| 43 |
0
|
return domain; |
| 44 |
|
} |
| 45 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 46 |
0
|
public int translate(int key) {... |
| 47 |
0
|
throw new UnsupportedOperationException(); |
| 48 |
|
} |
| 49 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 50 |
0
|
public void toClause(ISolver solver) throws ContradictionException {... |
| 51 |
0
|
throw new UnsupportedOperationException(); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
@see |
| 58 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
0
|
@Override... |
| 60 |
|
public String toString() { |
| 61 |
0
|
return String.valueOf(value); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
} |