|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.infer.Constraint
LBJ2.infer.PropositionalConstraint
public abstract class PropositionalConstraint
All classes for representing propositional constraints are derived from this base class. A propositional constraint is:
true or the constant false.
| Constructor Summary | |
|---|---|
PropositionalConstraint()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
This method returns a shallow clone. |
abstract PropositionalConstraint |
CNF()
Produces a new, logically simplified version of this constraint in conjunctive normal form (CNF). |
abstract PropositionalConstraint |
DNF()
Produces a new, logically simplified version of this constraint in disjunctive normal form (DNF). |
abstract boolean |
moreGeneralThan(PropositionalConstraint c)
Compares topology to determine if this constraint is more general than the given constraint; note: this method is not required to be correct when it answers false. |
abstract boolean |
moreSpecificThan(PropositionalAtLeast c)
Compares topology to determine if this constraint is more specific than the given at-least; note: this method is not required to be correct when it answers false. |
abstract boolean |
moreSpecificThan(PropositionalConjunction c)
Compares topology to determine if this constraint is more specific than the given conjunction; note: this method is not required to be correct when it answers false. |
abstract boolean |
moreSpecificThan(PropositionalConstant c)
Compares topology to determine if this constraint is more specific than the given constant; note: this method is not required to be correct when it answers false. |
abstract boolean |
moreSpecificThan(PropositionalDisjunction c)
Compares topology to determine if this constraint is more specific than the given disjunction; note: this method is not required to be correct when it answers false. |
abstract boolean |
moreSpecificThan(PropositionalDoubleImplication c)
Compares topology to determine if this constraint is more specific than the given double implication; note: this method is not required to be correct when it answers false. |
abstract boolean |
moreSpecificThan(PropositionalImplication c)
Compares topology to determine if this constraint is more specific than the given implication; note: this method is not required to be correct when it answers false. |
abstract boolean |
moreSpecificThan(PropositionalNegation c)
Compares topology to determine if this constraint is more specific than the given negation; note: this method is not required to be correct when it answers false. |
abstract boolean |
moreSpecificThan(PropositionalVariable c)
Compares topology to determine if this constraint is more specific than the given variable; note: this method is not required to be correct when it answers false. |
abstract PropositionalConstraint |
negate()
Produces a new propositional constraint equivalent to this constraint and that contains no negated constraints other than variables. |
abstract PropositionalConstraint |
simplify()
Produces a new, logically simplified version of this constraint, preserving variable consolidation. |
java.lang.String |
toString()
Creates a string respresentation of this constraint using the string representations of the objects involved. |
abstract void |
write(java.lang.StringBuffer buffer)
Creates a string respresentation of this constraint using the string representations of the objects involved. |
| Methods inherited from class LBJ2.infer.Constraint |
|---|
consolidateVariables, evaluate, getChildren, runVisit |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropositionalConstraint()
| Method Detail |
|---|
public abstract PropositionalConstraint simplify()
Constraint.consolidateVariables(java.util.AbstractMap)public abstract PropositionalConstraint negate()
public abstract PropositionalConstraint CNF()
public abstract PropositionalConstraint DNF()
public abstract boolean moreGeneralThan(PropositionalConstraint c)
false.
c - The given constraint.
true if a topological analysis determined that
this constraint is more general than the given constraint.public abstract boolean moreSpecificThan(PropositionalImplication c)
false.
c - The given implication.
true if a topological analysis determined that
this constraint is more specific than the given implication.public abstract boolean moreSpecificThan(PropositionalDoubleImplication c)
false.
c - The given double implication.
true if a topological analysis determined that
this constraint is more specific than the given double
implication.public abstract boolean moreSpecificThan(PropositionalConjunction c)
false.
c - The given conjunction.
true if a topological analysis determined that
this constraint is more specific than the given conjunction.public abstract boolean moreSpecificThan(PropositionalDisjunction c)
false.
c - The given disjunction.
true if a topological analysis determined that
this constraint is more specific than the given disjunction.public abstract boolean moreSpecificThan(PropositionalAtLeast c)
false.
c - The given at-least.
true if a topological analysis determined that
this constraint is more specific than the given disjunction.public abstract boolean moreSpecificThan(PropositionalNegation c)
false.
c - The given negation.
true if a topological analysis determined that
this constraint is more specific than the given negation.public abstract boolean moreSpecificThan(PropositionalVariable c)
false.
c - The given variable.
true if a topological analysis determined that
this constraint is more specific than the given variable.public abstract boolean moreSpecificThan(PropositionalConstant c)
false.
c - The given constant.
true if a topological analysis determined that
this constraint is more specific than the given constant.public java.lang.String toString()
write(StringBuffer) method to compute its output.
toString in class java.lang.Objectpublic abstract void write(java.lang.StringBuffer buffer)
buffer - The output of this method will be appended to this buffer.public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||