public class ExistsQuantifiedFormula extends QuantifiedFormula
| Constructor and Description |
|---|
ExistsQuantifiedFormula(ExistsQuantifiedFormula other) |
ExistsQuantifiedFormula(FolFormula folFormula,
Variable variable)
Creates a new exists-quantified formula with the given formula and variable.
|
ExistsQuantifiedFormula(RelationalFormula folFormula,
java.util.Set<Variable> variables)
Creates a new exists-quantified formula with the given formula and variables.
|
| Modifier and Type | Method and Description |
|---|---|
ExistsQuantifiedFormula |
clone()
Creates a deep copy of this formula
|
FolFormula |
collapseAssociativeFormulas()
This method collapses all associative operations appearing
in this term, e.g.
|
ExistsQuantifiedFormula |
substitute(Term<?> v,
Term<?> t)
Substitutes all occurrences of term "v" in this formula
by term "t" and returns the new formula.
|
FolFormula |
toNnf()
Makes the negation normal form of this formula.
|
java.lang.String |
toString() |
containsQuantifier, equals, getAtoms, getFormula, getFunctors, getPredicates, getQuantifiedFormulas, getQuantifierVariables, getTerms, getTerms, getUnboundVariables, hashCode, isClosed, isClosed, isDnf, isLiteral, isWellBound, isWellBoundcombineWithAnd, combineWithOr, complement, getUniformProbability, toDnfallGroundInstances, allSubstitutions, containsTermsOfType, exchange, getPredicateCls, getSatisfactionRatio, getSignature, isGround, isWellFormed, substitutepublic ExistsQuantifiedFormula(RelationalFormula folFormula, java.util.Set<Variable> variables)
folFormula - the formula this for-all-quantified formula ranges over.variables - the variables of this for-all-quantified formula.public ExistsQuantifiedFormula(FolFormula folFormula, Variable variable)
folFormula - the formula this for-all-quantified formula ranges over.variable - the variable of this for-all-quantified formula.public ExistsQuantifiedFormula(ExistsQuantifiedFormula other)
public ExistsQuantifiedFormula substitute(Term<?> v, Term<?> t) throws java.lang.IllegalArgumentException
RelationalFormulasubstitute in interface ComplexLogicalFormulasubstitute in class FolFormulav - the term to be substituted.t - the term to substitute.java.lang.IllegalArgumentException - if "v" and "t" are of different sorts
(NOTE: this exception is only thrown when "v" actually appears in this
formula).public FolFormula toNnf()
FolFormulatoNnf in class FolFormulapublic FolFormula collapseAssociativeFormulas()
FolFormulacollapseAssociativeFormulas in class FolFormulapublic java.lang.String toString()
toString in class RelationalFormulapublic ExistsQuantifiedFormula clone()
SimpleLogicalFormulaclone in interface ComplexLogicalFormulaclone in interface SimpleLogicalFormulaclone in class FolFormula