public class DLPNot extends DLPElementAdapter implements DLPElement
| Modifier and Type | Field and Description |
|---|---|
(package private) DLPLiteral |
lit |
| Constructor and Description |
|---|
DLPNot(DLPLiteral inner) |
DLPNot(DLPNot other) |
| Modifier and Type | Method and Description |
|---|---|
DLPNot |
clone()
Creates a deep copy of this formula
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<DLPAtom> |
getAtoms()
Processes the set of all atoms which appear in this formula
|
java.util.SortedSet<DLPLiteral> |
getLiterals() |
java.lang.Class<? extends Predicate> |
getPredicateCls() |
java.util.Set<DLPPredicate> |
getPredicates()
Processes the set of all predicates which appear in this
formula
|
FolSignature |
getSignature()
Returns the signature of the language of this formula.
|
java.util.Set<Term<?>> |
getTerms() |
int |
hashCode() |
boolean |
isGround()
Checks whether this formula is ground, i.e.
|
DLPNot |
substitute(Term<?> v,
Term<?> t)
Substitutes all occurrences of term "v" in this formula
by term "t" and returns the new formula.
|
java.lang.String |
toString() |
containsTermsOfType, exchange, getTerms, isLiteral, isWellFormed, substitutefinalize, getClass, notify, notifyAll, wait, wait, waitexchange, isWellFormed, substituteisLiteralcontainsTermsOfType, getTermsDLPLiteral lit
public DLPNot(DLPLiteral inner)
public DLPNot(DLPNot other)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in interface SimpleLogicalFormulahashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface SimpleLogicalFormulaequals in class java.lang.Objectpublic boolean isGround()
ComplexLogicalFormulaisGround in interface ComplexLogicalFormulaisGround in class ComplexLogicalFormulaAdapterpublic DLPNot clone()
SimpleLogicalFormulaclone in interface ComplexLogicalFormulaclone in interface SimpleLogicalFormulaclone in interface DLPElementclone in class DLPElementAdapterpublic java.util.Set<DLPAtom> getAtoms()
SimpleLogicalFormulagetAtoms in interface SimpleLogicalFormulagetAtoms in interface DLPElementpublic java.util.Set<DLPPredicate> getPredicates()
SimpleLogicalFormulagetPredicates in interface SimpleLogicalFormulagetPredicates in interface DLPElementpublic java.lang.Class<? extends Predicate> getPredicateCls()
getPredicateCls in interface SimpleLogicalFormulagetPredicateCls in class DLPElementAdapterpublic FolSignature getSignature()
FormulagetSignature in interface FormulagetSignature in interface DLPElementpublic java.util.Set<Term<?>> getTerms()
getTerms in interface LogicStructurepublic DLPNot substitute(Term<?> v, Term<?> t) throws java.lang.IllegalArgumentException
ComplexLogicalFormulasubstitute in interface ComplexLogicalFormulasubstitute in interface DLPElementv - the term to be substituted.t - the term to substitute.java.lang.IllegalArgumentException - if "v" and "t" are of different sortspublic java.util.SortedSet<DLPLiteral> getLiterals()
getLiterals in interface DLPElement