public abstract class ComplexLogicalFormulaAdapter extends java.lang.Object implements ComplexLogicalFormula
| Constructor and Description |
|---|
ComplexLogicalFormulaAdapter() |
| Modifier and Type | Method and Description |
|---|---|
abstract ComplexLogicalFormula |
clone()
Creates a deep copy of this formula
|
<C extends Term<?>> |
containsTermsOfType(java.lang.Class<C> cls)
Checks if this logical structure contains at least one term of type C.
|
ComplexLogicalFormula |
exchange(Term<?> v,
Term<?> t)
Substitutes all occurrences of term "v" in this formula
by term "t" and at the same time replaces all occurrences of term "t"
by term "v" and eventually returns the new formula.
|
<C extends Term<?>> |
getTerms(java.lang.Class<C> cls)
Processes the set containing all terms of type C.
|
boolean |
isGround()
Checks whether this formula is ground, i.e.
|
boolean |
isLiteral() |
boolean |
isWellFormed()
Checks if this formula is well formed in the logical langauge.
|
ComplexLogicalFormula |
substitute(java.util.Map<? extends Term<?>,? extends Term<?>> map)
Substitutes all occurrences of all terms "v" in map.keyset() in this formula
by map.get(v) and returns the new formula.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsubstituteequals, getAtoms, getPredicateCls, getPredicates, hashCodegetSignaturegetTermspublic ComplexLogicalFormula substitute(java.util.Map<? extends Term<?>,? extends Term<?>> map) throws java.lang.IllegalArgumentException
ComplexLogicalFormulasubstitute in interface ComplexLogicalFormulamap - a mapping defining which terms to be substituted.java.lang.IllegalArgumentException - if any term and its mapping are of different sortspublic ComplexLogicalFormula exchange(Term<?> v, Term<?> t) throws java.lang.IllegalArgumentException
ComplexLogicalFormulaexchange in interface ComplexLogicalFormulav - a term.t - a term.java.lang.IllegalArgumentException - if "v" and "t" are of different sortspublic <C extends Term<?>> java.util.Set<C> getTerms(java.lang.Class<C> cls)
LogicStructuregetTerms in interface LogicStructurecls - The Class structure containing type information about the
searched termpublic <C extends Term<?>> boolean containsTermsOfType(java.lang.Class<C> cls)
LogicStructurecontainsTermsOfType in interface LogicStructurecls - The class structure representing the type C of the term.public boolean isGround()
ComplexLogicalFormulaisGround in interface ComplexLogicalFormulapublic boolean isWellFormed()
ComplexLogicalFormulaisWellFormed in interface ComplexLogicalFormulapublic boolean isLiteral()
isLiteral in interface SimpleLogicalFormulapublic abstract ComplexLogicalFormula clone()
SimpleLogicalFormulaclone in interface ComplexLogicalFormulaclone in interface SimpleLogicalFormulaclone in class java.lang.Object