public abstract class SpecialFormula extends FolFormula
| Constructor and Description |
|---|
SpecialFormula() |
| Modifier and Type | Method and Description |
|---|---|
FolFormula |
collapseAssociativeFormulas()
This method collapses all associative operations appearing
in this term, e.g.
|
boolean |
containsQuantifier()
Checks whether this formula contains any quantification.
|
java.util.Set<FOLAtom> |
getAtoms()
Processes the set of all atoms which appear in this formula
|
java.util.Set<Conjunction> |
getConjunctions() |
java.util.Set<Disjunction> |
getDisjunctions() |
java.util.Set<Functor> |
getFunctors() |
java.util.Set<Predicate> |
getPredicates()
Processes the set of all predicates which appear in this
formula
|
java.util.Set<QuantifiedFormula> |
getQuantifiedFormulas() |
java.util.Set<Term<?>> |
getTerms() |
<C extends Term<?>> |
getTerms(java.lang.Class<C> cls)
Processes the set containing all terms of type C.
|
java.util.Set<Variable> |
getUnboundVariables() |
boolean |
isClosed()
Checks whether this formula is closed, i.e.
|
boolean |
isClosed(java.util.Set<Variable> boundVariables)
Checks whether this formula is closed, i.e.
|
boolean |
isDnf()
Checks whether this formula is in disjunctive normal form.
|
boolean |
isLiteral() |
boolean |
isWellBound()
Checks whether this formula is well-bound, i.e.
|
boolean |
isWellBound(java.util.Set<Variable> boundVariables)
Checks whether this formula is well-bound, i.e.
|
FolFormula |
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.
|
clone, combineWithAnd, combineWithOr, complement, getQuantifierVariables, getUniformProbability, toDnfallGroundInstances, allSubstitutions, containsTermsOfType, exchange, getFormula, getPredicateCls, getSatisfactionRatio, getSignature, isGround, isWellFormed, substitute, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic boolean containsQuantifier()
QuantifiedFormulapublic java.util.Set<Term<?>> getTerms()
public <C extends Term<?>> java.util.Set<C> getTerms(java.lang.Class<C> cls)
LogicStructurecls - The Class structure containing type information about the
searched termpublic java.util.Set<FOLAtom> getAtoms()
SimpleLogicalFormulagetAtoms in interface SimpleLogicalFormulagetAtoms in class RelationalFormulapublic java.util.Set<Predicate> getPredicates()
SimpleLogicalFormulapublic boolean isClosed()
QuantifiedFormulapublic boolean isClosed(java.util.Set<Variable> boundVariables)
QuantifiedFormulaboundVariables - the variables assumed to be bound.public boolean isWellBound()
QuantifiedFormulapublic boolean isWellBound(java.util.Set<Variable> boundVariables)
QuantifiedFormulaboundVariables - the variables assumed to be bound.public boolean isLiteral()
public FolFormula substitute(Term<?> v, Term<?> t)
RelationalFormulasubstitute in interface ComplexLogicalFormulasubstitute in class FolFormulav - the term to be substituted.t - the term to substitute.public java.util.Set<Variable> getUnboundVariables()
public java.util.Set<Functor> getFunctors()
getFunctors in class RelationalFormulapublic java.util.Set<QuantifiedFormula> getQuantifiedFormulas()
public java.util.Set<Disjunction> getDisjunctions()
public java.util.Set<Conjunction> getConjunctions()
public boolean isDnf()
FolFormulaisDnf in class FolFormulapublic FolFormula toNnf()
FolFormulatoNnf in class FolFormulapublic FolFormula collapseAssociativeFormulas()
FolFormulacollapseAssociativeFormulas in class FolFormula