public class ComparativeAtom extends ASPBodyElement
| Constructor and Description |
|---|
ComparativeAtom(ASPOperator.BinaryOperator op,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> left,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> right) |
ComparativeAtom(ComparativeAtom other)
Copy-Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ASPBodyElement |
clone() |
boolean |
equals(Object obj) |
Set<ASPAtom> |
getAtoms() |
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> |
getLeft()
Returns the left (first) term of the comparative atom.
|
SortedSet<ASPLiteral> |
getLiterals()
Returns all literals in this element in form of a SortedSet.
|
ASPOperator.BinaryOperator |
getOperator()
Returns the comparative operator of the atom.
|
Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicateCls() |
Set<net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> |
getRight()
Returns the right (second) term of the comparative atom.
|
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 |
isLiteral() |
ComparativeAtom |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v) |
String |
toString() |
containsTermsOfType, exchange, isGround, isWellFormed, substitutepublic ComparativeAtom(ASPOperator.BinaryOperator op, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> left, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> right)
public ComparativeAtom(ComparativeAtom other)
comparativeAtom - public 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 ComparativeAtom substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v)
substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulasubstitute in class ASPBodyElementpublic net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in class ASPElementpublic ASPBodyElement 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 Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicateCls()
getPredicateCls in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetPredicateCls in class ASPElementpublic boolean isLiteral()
public Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getTerms()
public ASPOperator.BinaryOperator getOperator()
public net.sf.tweety.logics.commons.syntax.interfaces.Term<?> getLeft()
public net.sf.tweety.logics.commons.syntax.interfaces.Term<?> getRight()
public <C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> Set<C> getTerms(Class<C> cls)
public int hashCode()
Copyright © 2019. All rights reserved.