|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.engine.fol2sat.Translation
public final class Translation
Stores the translation of a kodkod formula
to CNF.
formula: Formula // the formula that was translated |
bounds: Bounds // the bounds used to obtain the CNF from the formula |
solver: SATSolver // a SATSolver containing the CNF representation of the formula |
options: Options // the options object used to control translation parameters |
Method Summary | |
---|---|
SATSolver |
cnf()
Returns a SATSolver object initialized with the CNF encoding of this.formula and the timeout and random seed values specified by this.options. |
Instance |
interpret()
If this.solver.solve() is true, returns an interpretation of the cnf solution as a mapping from Relations to sets of Tuples. |
TranslationLog |
log()
If this.options.logTranslation was set to true, returns the log of the translation that produced this Translation object. |
int |
numPrimaryVariables()
Returns the number of primary variables allocated during translation. |
IntSet |
primaryVariables(Relation relation)
Returns the set of primary variable literals that represent the tuples in the given relation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public SATSolver cnf()
SATSolver.solve()
.
public Instance interpret()
java.lang.IllegalStateException
- - this.solver.solve() has not been called or the
outcome of the last call was not true
.public IntSet primaryVariables(Relation relation)
public int numPrimaryVariables()
public TranslationLog log()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |