public class ASPHead extends ASPElement implements net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<ASPLiteral>, net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable, net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridge
| Constructor and Description |
|---|
ASPHead()
Empty Constructor.
|
ASPHead(ASPHead other)
Copy-Constructor
|
ASPHead(ASPLiteral head)
Creates a new head with a single element.
|
ASPHead(List<ASPLiteral> head_elements)
Creates a new head with the given elements.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ASPLiteral e) |
void |
add(int index,
ASPLiteral element) |
boolean |
addAll(Collection<? extends ASPLiteral> c) |
boolean |
addAll(int index,
Collection<? extends ASPLiteral> c) |
void |
clear() |
ASPHead |
clone() |
net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula |
combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
containsTermsOfType(Class<C> cls) |
ASPHead |
createEmptyFormula() |
net.sf.tweety.logics.fol.syntax.FolSignature |
createEmptySignature() |
boolean |
equals(Object other) |
ASPHead |
exchange(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
ASPLiteral |
get(int index) |
Set<ASPAtom> |
getAtoms() |
String |
getEmptySymbol() |
List<ASPLiteral> |
getFormulas() |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula> |
getFormulas(Class<C> cls) |
SortedSet<ASPLiteral> |
getLiterals()
Returns all literals in this element in form of a SortedSet.
|
String |
getOperatorSymbol() |
Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicateCls() |
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() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
boolean |
isGround() |
boolean |
isLiteral() |
boolean |
isWellFormed() |
Iterator<ASPLiteral> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<ASPLiteral> |
listIterator() |
ListIterator<ASPLiteral> |
listIterator(int index) |
ASPLiteral |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
ASPLiteral |
set(int index,
ASPLiteral element) |
int |
size() |
List<ASPLiteral> |
subList(int fromIndex,
int toIndex) |
ASPHead |
substitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> map) |
ASPHead |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic ASPHead()
public ASPHead(List<ASPLiteral> head_elements)
head_elements - list of literalspublic ASPHead(ASPLiteral head)
head - public ASPHead(ASPHead other)
other - public boolean isGround()
isGround in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaisGround in class ASPElementpublic boolean isWellFormed()
isWellFormed in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulaisWellFormed 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()
isLiteral in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getTerms()
getTerms in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicStructurepublic <C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> Set<C> getTerms(Class<C> cls)
getTerms in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicStructurepublic <C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> boolean containsTermsOfType(Class<C> cls)
containsTermsOfType in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicStructurecontainsTermsOfType in class ASPElementpublic 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 ASPHead 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 ASPHead 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 boolean add(ASPLiteral e)
add in interface Collection<ASPLiteral>add in interface List<ASPLiteral>public void add(int index,
ASPLiteral element)
add in interface List<ASPLiteral>public boolean addAll(Collection<? extends ASPLiteral> c)
addAll in interface Collection<ASPLiteral>addAll in interface List<ASPLiteral>public boolean addAll(int index,
Collection<? extends ASPLiteral> c)
addAll in interface List<ASPLiteral>public void clear()
clear in interface Collection<ASPLiteral>clear in interface List<ASPLiteral>public boolean contains(Object o)
contains in interface Collection<ASPLiteral>contains in interface List<ASPLiteral>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<ASPLiteral>containsAll in interface List<ASPLiteral>public ASPLiteral get(int index)
get in interface List<ASPLiteral>public int indexOf(Object o)
indexOf in interface List<ASPLiteral>public boolean isEmpty()
isEmpty in interface Collection<ASPLiteral>isEmpty in interface List<ASPLiteral>public Iterator<ASPLiteral> iterator()
iterator in interface Iterable<ASPLiteral>iterator in interface Collection<ASPLiteral>iterator in interface List<ASPLiteral>public int lastIndexOf(Object o)
lastIndexOf in interface List<ASPLiteral>public ListIterator<ASPLiteral> listIterator()
listIterator in interface List<ASPLiteral>public ListIterator<ASPLiteral> listIterator(int index)
listIterator in interface List<ASPLiteral>public boolean remove(Object o)
remove in interface Collection<ASPLiteral>remove in interface List<ASPLiteral>public ASPLiteral remove(int index)
remove in interface List<ASPLiteral>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<ASPLiteral>removeAll in interface List<ASPLiteral>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<ASPLiteral>retainAll in interface List<ASPLiteral>public ASPLiteral set(int index, ASPLiteral element)
set in interface List<ASPLiteral>public int size()
size in interface Collection<ASPLiteral>size in interface List<ASPLiteral>public List<ASPLiteral> subList(int fromIndex, int toIndex)
subList in interface List<ASPLiteral>public Object[] toArray()
toArray in interface Collection<ASPLiteral>toArray in interface List<ASPLiteral>public <T> T[] toArray(T[] a)
toArray in interface Collection<ASPLiteral>toArray in interface List<ASPLiteral>public List<ASPLiteral> getFormulas()
getFormulas in interface net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<ASPLiteral>public <C extends net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula> Set<C> getFormulas(Class<C> cls)
getFormulas in interface net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<ASPLiteral>public ASPHead createEmptyFormula()
createEmptyFormula in interface net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridgepublic net.sf.tweety.logics.fol.syntax.FolSignature createEmptySignature()
createEmptySignature in interface net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridgepublic String getOperatorSymbol()
getOperatorSymbol in interface net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridgepublic String getEmptySymbol()
getEmptySymbol in interface net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridgepublic net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f)
combineWithOr in interface net.sf.tweety.logics.commons.syntax.interfaces.Disjunctablepublic ASPHead 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 ASPHead 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()
public boolean equals(Object other)
equals in interface Collection<ASPLiteral>equals in interface List<ASPLiteral>equals in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaequals in class Objectpublic int hashCode()
hashCode in interface Collection<ASPLiteral>hashCode in interface List<ASPLiteral>hashCode in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulahashCode in class ObjectCopyright © 2019. All rights reserved.