|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.infer.Constraint
LBJ2.infer.PropositionalConstraint
LBJ2.infer.PropositionalNAryConstraint
public abstract class PropositionalNAryConstraint
Represents a propositional constraint with an arbitrary number of arguments, usually assumed to be greater than or equal to 2.
| Field Summary | |
|---|---|
protected java.util.HashSet |
children
The children of the operator. |
| Constructor Summary | |
|---|---|
PropositionalNAryConstraint()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
This method returns a shallow clone. |
void |
consolidateVariables(java.util.AbstractMap m)
Replaces all unquantified variables with the unique copy stored as a value of the given map; also instantiates all quantified variables and stores them in the given map. |
boolean |
contains(PropositionalConstraint c)
Determines whether the given constraint is a term of this constraint. |
Constraint[] |
getChildren()
Returns the children of this constraint in an array. |
int |
size()
Returns the number of terms in this constraint. |
| Methods inherited from class LBJ2.infer.PropositionalConstraint |
|---|
CNF, DNF, moreGeneralThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, negate, simplify, toString, write |
| Methods inherited from class LBJ2.infer.Constraint |
|---|
evaluate, runVisit |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashSet children
| Constructor Detail |
|---|
public PropositionalNAryConstraint()
| Method Detail |
|---|
public void consolidateVariables(java.util.AbstractMap m)
consolidateVariables in class Constraintm - The map in which to find unique copies of the variables.public Constraint[] getChildren()
getChildren in class Constraintpublic boolean contains(PropositionalConstraint c)
c - The given constraint.
true iff the given constraint is contained in
this constraint.public int size()
public java.lang.Object clone()
clone in class PropositionalConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||