public class Negation extends FolFormula
| Constructor and Description |
|---|
Negation(net.sf.tweety.logics.commons.syntax.RelationalFormula formula) |
| Modifier and Type | Method and Description |
|---|---|
Negation |
clone() |
FolFormula |
collapseAssociativeFormulas()
This method collapses all associative operations appearing
in this term, e.g.
|
boolean |
containsQuantifier() |
boolean |
equals(Object obj) |
Set<FOLAtom> |
getAtoms() |
FolFormula |
getFormula() |
Set<net.sf.tweety.logics.commons.syntax.Functor> |
getFunctors() |
Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms() |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms(Class<C> cls) |
Set<net.sf.tweety.logics.commons.syntax.Variable> |
getUnboundVariables() |
int |
hashCode() |
boolean |
isClosed() |
boolean |
isClosed(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
boolean |
isDnf()
Checks whether this formula is in disjunctive normal form.
|
boolean |
isLiteral() |
boolean |
isWellBound() |
boolean |
isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
Negation |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
FolFormula |
toNnf()
Makes the negation normal form of this formula.
|
String |
toString() |
combineWithAnd, combineWithOr, complement, getQuantifierVariables, getSignature, getUniformProbability, toDnfpublic Negation(net.sf.tweety.logics.commons.syntax.RelationalFormula formula)
public FolFormula getFormula()
getFormula in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulagetFormula in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
public Set<net.sf.tweety.logics.commons.syntax.Functor> getFunctors()
getFunctors in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic Set<FOLAtom> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetAtoms in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic boolean containsQuantifier()
public boolean isClosed()
public Negation substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) throws IllegalArgumentException
substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulasubstitute in class FolFormulaIllegalArgumentExceptionpublic boolean isClosed(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables)
public Set<net.sf.tweety.logics.commons.syntax.Variable> getUnboundVariables()
public boolean isWellBound()
public boolean isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables)
public boolean isLiteral()
public String toString()
toString in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic int hashCode()
public boolean equals(Object obj)
public boolean isDnf()
FolFormulaisDnf in class FolFormulapublic FolFormula toNnf()
FolFormulatoNnf in class FolFormulapublic FolFormula collapseAssociativeFormulas()
FolFormulacollapseAssociativeFormulas in class FolFormulapublic Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getTerms()
public <C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> Set<C> getTerms(Class<C> cls)
public Negation clone()
clone in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaclone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaclone in class FolFormulaCopyright © 2018. All rights reserved.