public class DLPNeg extends DLPElementAdapter implements DLPLiteral
| Constructor and Description |
|---|
DLPNeg(DLPAtom inner) |
DLPNeg(DLPNeg other) |
DLPNeg(String expr) |
DLPNeg(String symbol,
List<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> terms)
default constructor, create an atom from a functor name
and a list of terms.
|
DLPNeg(String symbol,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?>... terms) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> arg) |
DLPNeg |
clone() |
DLPLiteral |
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(DLPLiteral o) |
DLPAtom |
complement() |
boolean |
equals(Object o) |
List<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getArguments() |
DLPAtom |
getAtom() |
Set<DLPAtom> |
getAtoms() |
SortedSet<DLPLiteral> |
getLiterals() |
String |
getName() |
DLPPredicate |
getPredicate() |
Set<DLPPredicate> |
getPredicates() |
net.sf.tweety.logics.fol.syntax.FolSignature |
getSignature() |
Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms() |
int |
hashCode() |
boolean |
isComplete() |
boolean |
isGround() |
net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATE |
setPredicate(net.sf.tweety.logics.commons.syntax.Predicate predicate) |
DLPNeg |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
String |
toString() |
getPredicateClscontainsTermsOfType, exchange, getTerms, isLiteral, isWellFormed, substitutefinalize, getClass, notify, notifyAll, wait, wait, waitexchange, isWellFormed, substitutepublic DLPNeg(DLPAtom inner)
public DLPNeg(DLPNeg other)
public DLPNeg(String symbol, net.sf.tweety.logics.commons.syntax.interfaces.Term<?>... terms)
public DLPNeg(String symbol, List<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> terms)
symbol - the functor nameterms - the terms (arguments) of the atompublic DLPNeg(String expr)
public DLPAtom getAtom()
getAtom in interface DLPLiteralpublic boolean equals(Object o)
public boolean isGround()
isGround in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaisGround in class net.sf.tweety.logics.commons.syntax.ComplexLogicalFormulaAdapterpublic DLPNeg clone()
clone in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaclone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaclone in interface DLPElementclone in class DLPElementAdapterpublic DLPAtom complement()
complement in interface net.sf.tweety.logics.commons.syntax.interfaces.Invertablecomplement in interface DLPLiteralpublic DLPLiteral cloneWithAddedTerm(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> term)
DLPLiteralcloneWithAddedTerm in interface DLPLiteralterm - the new argument.public int hashCode()
public DLPNeg 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 interface DLPElementsubstitute in interface DLPLiteralIllegalArgumentExceptionpublic Set<DLPAtom> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetAtoms in interface DLPElementpublic Set<DLPPredicate> getPredicates()
getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetPredicates in interface DLPElementpublic net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in interface DLPElementpublic Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getTerms()
getTerms in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicStructurepublic String getName()
getName in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic DLPPredicate getPredicate()
getPredicate in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATE setPredicate(net.sf.tweety.logics.commons.syntax.Predicate predicate)
setPredicate in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic void addArgument(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> arg)
throws net.sf.tweety.logics.commons.error.LanguageException
addArgument in interface net.sf.tweety.logics.commons.syntax.interfaces.Atomnet.sf.tweety.logics.commons.error.LanguageExceptionpublic List<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getArguments()
getArguments in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic boolean isComplete()
isComplete in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic SortedSet<DLPLiteral> getLiterals()
getLiterals in interface DLPElementpublic int compareTo(DLPLiteral o)
compareTo in interface Comparable<DLPLiteral>Copyright © 2018. All rights reserved.