|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.engine.fol2sat.Translator
public final class Translator
Translates, evaluates, and approximates nodes
with
respect to given bounds
(or instances
) and Options
.
Method Summary | |
---|---|
static kodkod.engine.bool.BooleanMatrix |
approximate(kodkod.ast.Expression expression,
kodkod.instance.Bounds bounds,
Options options)
Overapproximates the value of the given expression using the provided bounds and options. |
static kodkod.engine.bool.BooleanMatrix |
evaluate(kodkod.ast.Expression expression,
kodkod.instance.Instance instance,
Options options)
Evaluates the given expression to a BooleanMatrix using the provided instance and options. |
static kodkod.engine.bool.BooleanConstant |
evaluate(kodkod.ast.Formula formula,
kodkod.instance.Instance instance,
Options options)
Evaluates the given formula to a BooleanConstant using the provided instance and options. |
static kodkod.engine.bool.Int |
evaluate(kodkod.ast.IntExpression intExpr,
kodkod.instance.Instance instance,
Options options)
Evalutes the given intexpression to an Int using the provided instance and options. |
static kodkod.engine.fol2sat.Translation |
translate(kodkod.ast.Formula formula,
kodkod.instance.Bounds bounds,
Options options)
Translates the given formula using the specified bounds and options. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static kodkod.engine.bool.BooleanMatrix approximate(kodkod.ast.Expression expression, kodkod.instance.Bounds bounds, Options options)
expression
- = null || instance = null || options = null
kodkod.engine.fol2sat.UnboundLeafException
- the expression refers to an undeclared variable or a relation not mapped by the instance
kodkod.engine.fol2sat.HigherOrderDeclException
- the expression contains a higher order declarationpublic static kodkod.engine.bool.BooleanConstant evaluate(kodkod.ast.Formula formula, kodkod.instance.Instance instance, Options options)
java.lang.NullPointerException
- formula = null || instance = null || options = null
kodkod.engine.fol2sat.UnboundLeafException
- the formula refers to an undeclared variable or a relation not mapped by the instance
kodkod.engine.fol2sat.HigherOrderDeclException
- the formula contains a higher order declarationpublic static kodkod.engine.bool.BooleanMatrix evaluate(kodkod.ast.Expression expression, kodkod.instance.Instance instance, Options options)
java.lang.NullPointerException
- expression = null || instance = null || options = null
kodkod.engine.fol2sat.UnboundLeafException
- the expression refers to an undeclared variable or a relation not mapped by the instance
kodkod.engine.fol2sat.HigherOrderDeclException
- the expression contains a higher order declarationpublic static kodkod.engine.bool.Int evaluate(kodkod.ast.IntExpression intExpr, kodkod.instance.Instance instance, Options options)
Int
using the provided instance and options.
Int
representing the value of the intExpr with respect
to the specified instance and options.
java.lang.NullPointerException
- formula = null || instance = null || options = null
kodkod.engine.fol2sat.UnboundLeafException
- the expression refers to an undeclared variable or a relation not mapped by the instance
kodkod.engine.fol2sat.HigherOrderDeclException
- the expression contains a higher order declarationpublic static kodkod.engine.fol2sat.Translation translate(kodkod.ast.Formula formula, kodkod.instance.Bounds bounds, Options options) throws kodkod.engine.fol2sat.TrivialFormulaException
kodkod.engine.fol2sat.TrivialFormulaException
- the given formula is reduced to a constant during translation
(i.e. the formula is trivially (un)satisfiable).
java.lang.NullPointerException
- any of the arguments are null
kodkod.engine.fol2sat.UnboundLeafException
- the formula refers to an undeclared variable or a relation not mapped by the given bounds.
kodkod.engine.fol2sat.HigherOrderDeclException
- the formula contains a higher order declaration that cannot
be skolemized, or it can be skolemized but options.skolemize is false.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |