public abstract class PropositionalConstraint extends Constraint implements Cloneable
true
or the constant false
.
Constructor and Description |
---|
PropositionalConstraint() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString()
Creates a string respresentation of this constraint using the string representations of the
objects involved.
|
abstract void |
write(StringBuffer buffer)
Creates a string respresentation of this constraint using the string representations of the
objects involved.
|
consolidateVariables, evaluate, getChildren, runVisit
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 String toString()
write(StringBuffer)
method to compute
its output.public abstract void write(StringBuffer buffer)
buffer
- The output of this method will be appended to this buffer.Copyright © 2016. All rights reserved.