|
||||||||||
| 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.FirstOrderImplication
public class FirstOrderImplication
Represents an implication between two first order constraints.
| Field Summary |
|---|
| Fields inherited from class LBJ2.infer.FirstOrderBinaryConstraint |
|---|
left, right |
| Constructor Summary | |
|---|---|
FirstOrderImplication(FirstOrderConstraint l,
FirstOrderConstraint r)
Initializing constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Two FirstOrderImplications are equivalent when they are
topologically equivalent. |
boolean |
evaluate()
Determines whether the constraint is satisfied. |
int |
hashCode()
The hash code of a FirstOrderImplication is the sum of the
hash codes of its children plus two. |
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 FirstOrderImplication(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()
FirstOrderImplication is the sum of the
hash codes of its children plus two.
hashCode in class java.lang.ObjectFirstOrderImplication.public boolean equals(java.lang.Object o)
FirstOrderImplications are equivalent when they are
topologically equivalent.
equals in class java.lang.Objecttrue iff the argument is an equivalent
FirstOrderImplication.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 | |||||||||