public class StrictNegation extends ASPLiteral
DefaultNegation).| Constructor and Description |
|---|
StrictNegation(ASPAtom atom)
Creates a new negation with the given atom.
|
StrictNegation(net.sf.tweety.logics.commons.syntax.Predicate p,
List<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> terms)
Creates a new negation with the given predicate and terms.
|
StrictNegation(StrictNegation other)
Copy-Constructor
|
StrictNegation(String name)
Creates a new negation with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> arg) |
StrictNegation |
clone() |
ASPLiteral |
cloneWithAddedTerm(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> term)
Creates a copy of the literal and adds the
given term as argument to the end of the argument
list.
|
int |
compareTo(ASPLiteral o) |
ASPLiteral |
complement() |
boolean |
equals(Object o) |
List<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getArguments() |
ASPAtom |
getAtom() |
Set<ASPAtom> |
getAtoms() |
SortedSet<ASPLiteral> |
getLiterals()
Returns all literals in this element in form of a SortedSet.
|
String |
getName() |
net.sf.tweety.logics.commons.syntax.Predicate |
getPredicate() |
Set<net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
net.sf.tweety.logics.fol.syntax.FolSignature |
getSignature() |
Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms() |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms(Class<C> cls) |
int |
hashCode() |
boolean |
isComplete() |
net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATE |
setPredicate(net.sf.tweety.logics.commons.syntax.Predicate predicate) |
StrictNegation |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
String |
toString() |
isLiteralcontainsTermsOfType, exchange, getPredicateCls, isGround, isWellFormed, substitutepublic StrictNegation(ASPAtom atom)
atom - an ASP atompublic StrictNegation(net.sf.tweety.logics.commons.syntax.Predicate p,
List<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> terms)
p - predicate of the negated atomterms - terms of the negated atompublic StrictNegation(StrictNegation other)
other - public StrictNegation(String name)
name - of the negated atom's predicatepublic SortedSet<ASPLiteral> getLiterals()
ASPBodyElementgetLiterals in class ASPBodyElementpublic Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetPredicates in class ASPElementpublic Set<ASPAtom> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetAtoms in class ASPElementpublic net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in class ASPElementpublic StrictNegation clone()
clone in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaclone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaclone in class ASPElementpublic 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 String getName()
public net.sf.tweety.logics.commons.syntax.Predicate getPredicate()
public net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATE setPredicate(net.sf.tweety.logics.commons.syntax.Predicate predicate)
public void addArgument(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> arg)
throws net.sf.tweety.logics.commons.error.LanguageException
net.sf.tweety.logics.commons.error.LanguageExceptionpublic List<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getArguments()
public boolean isComplete()
public int compareTo(ASPLiteral o)
public ASPLiteral cloneWithAddedTerm(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> term)
ASPLiteralcloneWithAddedTerm in class ASPLiteralterm - the new argument.public ASPAtom getAtom()
getAtom in class ASPLiteralpublic ASPLiteral complement()
complement in interface net.sf.tweety.logics.commons.syntax.interfaces.Invertablecomplement in class ASPLiteralpublic StrictNegation 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 ASPBodyElementIllegalArgumentExceptionpublic int hashCode()
Copyright © 2019. All rights reserved.