public class DLPHead extends DLPElementAdapter implements net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<DLPLiteral>, net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable, net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormula, net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridge
| Constructor and Description |
|---|
DLPHead()
Default-Ctor: Generates empty head
|
DLPHead(DLPHead other)
Copy-Ctor: Generates a deep copy from the given head
|
DLPHead(DLPLiteral literal)
Ctor: Generates a head with one literal
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(DLPLiteral arg0) |
void |
add(int index,
DLPLiteral element) |
boolean |
addAll(Collection<? extends DLPLiteral> arg0) |
boolean |
addAll(int index,
Collection<? extends DLPLiteral> c) |
void |
clear() |
DLPHead |
clone() |
net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula |
combineWithOr(net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable f) |
boolean |
contains(Object arg0) |
boolean |
containsAll(Collection<?> arg0) |
DLPHead |
createEmptyFormula() |
net.sf.tweety.commons.Signature |
createEmptySignature() |
boolean |
equals(Object other) |
DLPLiteral |
get(int index) |
Set<DLPAtom> |
getAtoms() |
String |
getEmptySymbol() |
List<DLPLiteral> |
getFormulas() |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula> |
getFormulas(Class<C> cls) |
SortedSet<DLPLiteral> |
getLiterals() |
String |
getOperatorSymbol() |
Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicateCls() |
Set<DLPPredicate> |
getPredicates() |
net.sf.tweety.logics.fol.syntax.FolSignature |
getSignature() |
Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms() |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<DLPLiteral> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<DLPLiteral> |
listIterator() |
ListIterator<DLPLiteral> |
listIterator(int index) |
DLPLiteral |
remove(int index) |
boolean |
remove(Object arg0) |
boolean |
removeAll(Collection<?> arg0) |
boolean |
retainAll(Collection<?> arg0) |
DLPLiteral |
set(int index,
DLPLiteral element) |
int |
size() |
List<DLPLiteral> |
subList(int fromIndex,
int toIndex) |
DLPHead |
substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v,
net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] arg0) |
String |
toString() |
containsTermsOfType, exchange, getTerms, isGround, isLiteral, isWellFormed, substitutefinalize, getClass, notify, notifyAll, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streamexchange, isGround, isWellFormed, substitutepublic DLPHead()
public DLPHead(DLPLiteral literal)
literal - The literal of the headpublic DLPHead(DLPHead other)
other - The DLPHead object which acts as source for the copy operation.public 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 Class<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicateCls()
getPredicateCls in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetPredicateCls in class DLPElementAdapterpublic net.sf.tweety.logics.fol.syntax.FolSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in interface DLPElementpublic List<DLPLiteral> getFormulas()
getFormulas in interface net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<DLPLiteral>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<DLPLiteral>public DLPHead 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 DLPElementIllegalArgumentExceptionpublic 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 DLPHead createEmptyFormula()
createEmptyFormula in interface net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridgepublic net.sf.tweety.commons.Signature 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 DLPHead 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 SortedSet<DLPLiteral> getLiterals()
getLiterals in interface DLPElementpublic boolean equals(Object other)
equals in interface Collection<DLPLiteral>equals in interface List<DLPLiteral>equals in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaequals in class Objectpublic int hashCode()
hashCode in interface Collection<DLPLiteral>hashCode in interface List<DLPLiteral>hashCode in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulahashCode in class Objectpublic boolean add(DLPLiteral arg0)
add in interface Collection<DLPLiteral>add in interface List<DLPLiteral>public boolean addAll(Collection<? extends DLPLiteral> arg0)
addAll in interface Collection<DLPLiteral>addAll in interface List<DLPLiteral>public void clear()
clear in interface Collection<DLPLiteral>clear in interface List<DLPLiteral>public boolean contains(Object arg0)
contains in interface Collection<DLPLiteral>contains in interface List<DLPLiteral>public boolean containsAll(Collection<?> arg0)
containsAll in interface Collection<DLPLiteral>containsAll in interface List<DLPLiteral>public boolean isEmpty()
isEmpty in interface Collection<DLPLiteral>isEmpty in interface List<DLPLiteral>public Iterator<DLPLiteral> iterator()
iterator in interface Iterable<DLPLiteral>iterator in interface Collection<DLPLiteral>iterator in interface List<DLPLiteral>public boolean remove(Object arg0)
remove in interface Collection<DLPLiteral>remove in interface List<DLPLiteral>public boolean removeAll(Collection<?> arg0)
removeAll in interface Collection<DLPLiteral>removeAll in interface List<DLPLiteral>public boolean retainAll(Collection<?> arg0)
retainAll in interface Collection<DLPLiteral>retainAll in interface List<DLPLiteral>public int size()
size in interface Collection<DLPLiteral>size in interface List<DLPLiteral>public Object[] toArray()
toArray in interface Collection<DLPLiteral>toArray in interface List<DLPLiteral>public <T> T[] toArray(T[] arg0)
toArray in interface Collection<DLPLiteral>toArray in interface List<DLPLiteral>public Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getTerms()
getTerms in interface net.sf.tweety.logics.commons.syntax.interfaces.LogicStructurepublic void add(int index,
DLPLiteral element)
add in interface List<DLPLiteral>public boolean addAll(int index,
Collection<? extends DLPLiteral> c)
addAll in interface List<DLPLiteral>public DLPLiteral get(int index)
get in interface List<DLPLiteral>public int indexOf(Object o)
indexOf in interface List<DLPLiteral>public int lastIndexOf(Object o)
lastIndexOf in interface List<DLPLiteral>public ListIterator<DLPLiteral> listIterator()
listIterator in interface List<DLPLiteral>public ListIterator<DLPLiteral> listIterator(int index)
listIterator in interface List<DLPLiteral>public DLPLiteral remove(int index)
remove in interface List<DLPLiteral>public DLPLiteral set(int index, DLPLiteral element)
set in interface List<DLPLiteral>public List<DLPLiteral> subList(int fromIndex, int toIndex)
subList in interface List<DLPLiteral>Copyright © 2018. All rights reserved.