|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Evaluable
Method Summary | |
---|---|
Domain |
domain()
Return the domain of the evaluable. |
void |
toClause(ISolver solver)
Translates a variable over a domain into a set a clauses enforcing that exactly one value must be chosen in the domain. |
int |
translate(int key)
Translates a value from the domain nto a SAT variable in Dimacs format. |
Method Detail |
---|
Domain domain()
int translate(int key)
key
- a value from domain()
void toClause(ISolver solver) throws ContradictionException
solver
- a solver to feed with the clauses.
ContradictionException
- if a trivial inconsistency is met.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |