| Package | Description | 
|---|---|
| org.clafer.ast | 
 This package provides the language for building Clafer AST. 
 | 
| org.clafer.ast.analysis | 
 This package provides various analysis and optimizations to perform on the
 AST. 
 | 
| org.clafer.ast.compiler | 
 This package provides a compiler to translate Clafer AST to IR. 
 | 
| org.clafer.compiler | 
 This package provides a compiler from AST to Choco including algorithms for
 solving optimal instances and max unsat. 
 | 
| org.clafer.javascript | 
 This package provides classes for building Clafer models and invoking the
 solver via Javascript. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
AstConstraint | 
AstPrimClafer.addConstraint(AstBoolExpr constraint)
Add a new constraint under this Clafer. 
 | 
AstConstraint | 
AstClafer.addConstraint(AstBoolExpr expr)
Add a new constraint under this Clafer. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<AstConstraint> | 
AstClafer.getConstraints()
Returns this Clafer's constraints. 
 | 
static List<AstConstraint> | 
AstUtil.getNestedConstraints(AstModel model)
Find all the constraints in the model. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Map<AstConstraint,AstBoolExpr> | 
Analysis.getConstraintExprs()  | 
List<AstConstraint> | 
Analysis.getConstraints()  | 
Set<AstConstraint> | 
Analysis.getHardConstraints()  | 
| Modifier and Type | Method and Description | 
|---|---|
AstBoolExpr | 
Analysis.getExpr(AstConstraint constraint)  | 
boolean | 
Analysis.isHard(AstConstraint constraint)  | 
boolean | 
Analysis.isSoft(AstConstraint constraint)  | 
| Modifier and Type | Method and Description | 
|---|---|
Analysis | 
Analysis.setConstraintExprs(Map<AstConstraint,AstBoolExpr> constraintExprs)  | 
Analysis | 
Analysis.setConstraints(List<AstConstraint> constraints)  | 
Analysis | 
Analysis.setHardConstraints(Set<AstConstraint> hardConstraints)  | 
| Modifier and Type | Method and Description | 
|---|---|
Map<AstConstraint,IrBoolVar> | 
AstSolutionMap.getSoftVarsMap()  | 
| Modifier and Type | Method and Description | 
|---|---|
IrBoolVar | 
AstSolutionMap.getSoftVar(AstConstraint constraint)
Returns the soft variable associated to the constraint. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Pair<Set<AstConstraint>,InstanceModel> | 
ClaferUnsat.minUnsat()
Compute the minimal set of constraints that need to be removed before the
 model is satisfiable. 
 | 
Set<AstConstraint> | 
ClaferUnsat.unsatCore()
Compute a small set of constraints that are mutually unsatisfiable. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Pair<Set<AstConstraint>,InstanceModel> | 
JavascriptShell.minUnsat()
Find the Min-Unsat and near-miss example. 
 | 
Set<AstConstraint> | 
JavascriptShell.unsatCore()
Find the Min-Unsat-Core. 
 | 
Copyright © 2013. All Rights Reserved.