|
||||||||||
| 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.FirstOrderBinaryConstraint
LBJ2.infer.FirstOrderDoubleImplication
public class FirstOrderDoubleImplication
Represents a double implication between two first order constraints.
| Field Summary |
|---|
| Fields inherited from class LBJ2.infer.FirstOrderBinaryConstraint |
|---|
left, right |
| Constructor Summary | |
|---|---|
FirstOrderDoubleImplication(FirstOrderConstraint l,
FirstOrderConstraint r)
Initializing constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Two FirstOrderDoubleImplications are equivalent when
they are topologically equivalent, respecting the commutativity of
double implication. |
boolean |
evaluate()
Determines whether the constraint is satisfied. |
int |
hashCode()
The hash code of a FirstOrderDoubleImplication is the sum
of the hash codes of its children plus three. |
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.FirstOrderBinaryConstraint |
|---|
consolidateVariables, getChildren, setQuantificationVariables |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FirstOrderDoubleImplication(FirstOrderConstraint l,
FirstOrderConstraint r)
l - The constraint on the left of the operator.r - The constraint on the right of the operator.| Method Detail |
|---|
public boolean evaluate()
evaluate in class Constraintpublic PropositionalConstraint propositionalize()
propositionalize in class FirstOrderConstraintpublic int hashCode()
FirstOrderDoubleImplication is the sum
of the hash codes of its children plus three.
hashCode in class java.lang.ObjectFirstOrderDoubleImplication.public boolean equals(java.lang.Object o)
FirstOrderDoubleImplications are equivalent when
they are topologically equivalent, respecting the commutativity of
double implication.
equals in class java.lang.Objecttrue iff the argument is an equivalent
FirstOrderDoubleImplication.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 | |||||||||