|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.infer.Constraint
LBJ2.infer.FirstOrderConstraint
LBJ2.infer.FirstOrderNAryConstraint
LBJ2.infer.FirstOrderDisjunction
public class FirstOrderDisjunction
Represents the disjunction of first order constraints.
| Field Summary |
|---|
| Fields inherited from class LBJ2.infer.FirstOrderNAryConstraint |
|---|
children |
| Constructor Summary | |
|---|---|
FirstOrderDisjunction(FirstOrderConstraint c1,
FirstOrderConstraint c2)
If either of the arguments is itself a FirstOrderDisjunction, its contents are flattened into
this FirstOrderDisjunction. |
|
| Method Summary | |
|---|---|
void |
add(FirstOrderConstraint c)
If the given constraint has the same type as this constraint, its terms are merged into this constraint; otherwise, it is added as a new term. |
boolean |
equals(java.lang.Object o)
Two FirstOrderDisjunctions are equivalent when they are
topologically equivalent, respecting the associativity and commutivity
of disjunction. |
boolean |
evaluate()
Determines whether the constraint is satisfied. |
int |
hashCode()
The hash code of a FirstOrderDisjunction is the sum of
the hash codes of its children. |
PropositionalConstraint |
propositionalize()
Transforms this first order constraint into a propositional constraint. |
void |
runVisit(Inference infer)
Calls the appropriate visit(·) method of the given
Inference for this Constraint, as per the
visitor pattern. |
| Methods inherited from class LBJ2.infer.FirstOrderNAryConstraint |
|---|
consolidateVariables, contains, getChildren, setQuantificationVariables, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FirstOrderDisjunction(FirstOrderConstraint c1,
FirstOrderConstraint c2)
FirstOrderDisjunction, its contents are flattened into
this FirstOrderDisjunction.
c1 - One constraint to disjunct.c2 - Another constraint to disjunct.| Method Detail |
|---|
public void add(FirstOrderConstraint c)
add in class FirstOrderNAryConstraintc - The constraint to add.public boolean evaluate()
evaluate in class Constraintpublic PropositionalConstraint propositionalize()
propositionalize in class FirstOrderConstraintpublic int hashCode()
FirstOrderDisjunction is the sum of
the hash codes of its children.
hashCode in class java.lang.ObjectFirstOrderDisjunction.public boolean equals(java.lang.Object o)
FirstOrderDisjunctions are equivalent when they are
topologically equivalent, respecting the associativity and commutivity
of disjunction.
equals in class java.lang.Objecttrue iff the argument is an equivalent
FirstOrderDisjunction.public void runVisit(Inference infer)
visit(·) method of the given
Inference for this Constraint, as per the
visitor pattern.
runVisit in class Constraintinfer - The inference visiting this constraint.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||