|
||||||||||
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 BooleanMatrix |
approximate(Expression expression,
Bounds bounds,
Options options)
Overapproximates the value of the given expression using the provided bounds and options. |
static BooleanMatrix |
evaluate(Expression expression,
Instance instance,
Options options)
Evaluates the given expression to a BooleanMatrix using the provided instance and options. |
static BooleanConstant |
evaluate(Formula formula,
Instance instance,
Options options)
Evaluates the given formula to a BooleanConstant using the provided instance and options. |
static Int |
evaluate(IntExpression intExpr,
Instance instance,
Options options)
Evalutes the given intexpression to an Int using the provided instance and options. |
static Translation |
translate(Formula formula,
Bounds bounds,
Options options)
Translates the given formula using the specified bounds and options. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BooleanMatrix approximate(Expression expression, Bounds bounds, Options options)
expression
- = null || instance = null || options = null
UnboundLeafException
- - the expression refers to an undeclared variable or a relation not mapped by the instance
HigherOrderDeclException
- - the expression contains a higher order declarationpublic static BooleanConstant evaluate(Formula formula, Instance instance, Options options)
java.lang.NullPointerException
- - formula = null || instance = null || options = null
UnboundLeafException
- - the formula refers to an undeclared variable or a relation not mapped by the instance
HigherOrderDeclException
- - the formula contains a higher order declarationpublic static BooleanMatrix evaluate(Expression expression, Instance instance, Options options)
java.lang.NullPointerException
- - expression = null || instance = null || options = null
UnboundLeafException
- - the expression refers to an undeclared variable or a relation not mapped by the instance
HigherOrderDeclException
- - the expression contains a higher order declarationpublic static Int evaluate(IntExpression intExpr, 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
UnboundLeafException
- - the expression refers to an undeclared variable or a relation not mapped by the instance
HigherOrderDeclException
- - the expression contains a higher order declarationpublic static Translation translate(Formula formula, Bounds bounds, Options options) throws TrivialFormulaException
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
UnboundLeafException
- - the formula refers to an undeclared variable or a relation not mapped by the given bounds.
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 |