public class AggregateElement extends ASPElement
AggregateAtom| Constructor and Description |
|---|
AggregateElement(AggregateElement other)
Copy-Constructor
|
AggregateElement(List<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> l,
List<ASPBodyElement> r)
Creates a new Aggregate Element with the given list of terms and
the given list of naf literals.
|
| Modifier and Type | Method and Description |
|---|---|
AggregateElement |
clone() |
AggregateElement |
exchange(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
Set<ASPAtom> |
getAtoms() |
List<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getLeft()
Returns the left part of the Aggregate element.
|
SortedSet<ASPLiteral> |
getLiterals() |
Set<net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
List<ASPBodyElement> |
getRight()
Returns the right part of the Aggregate element.
|
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) |
boolean |
isLiteral() |
AggregateElement |
substitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> map) |
AggregateElement |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v) |
String |
toString() |
containsTermsOfType, getPredicateCls, isGround, isWellFormedpublic AggregateElement(List<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> l, List<ASPBodyElement> r)
l - r - public AggregateElement(AggregateElement other)
other - public boolean isLiteral()
public 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 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 AggregateElement 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 ASPElementpublic net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in class ASPElementpublic AggregateElement 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 List<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getLeft()
public List<ASPBodyElement> getRight()
public AggregateElement substitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> map) throws IllegalArgumentException
substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulasubstitute in class ASPElementIllegalArgumentExceptionpublic AggregateElement exchange(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) throws IllegalArgumentException
exchange in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaexchange in class ASPElementIllegalArgumentExceptionpublic SortedSet<ASPLiteral> getLiterals()
Copyright © 2019. All rights reserved.