public abstract class LdoAssociativeFormula extends LdoFormula implements net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<LdoFormula>, net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridge, Collection<LdoFormula>
| Modifier and Type | Field and Description |
|---|---|
protected net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport<LdoFormula> |
support
The inner formulas of this formula
|
| Constructor and Description |
|---|
LdoAssociativeFormula()
Creates a new (empty) associative formula.
|
LdoAssociativeFormula(Collection<? extends LdoFormula> formulas)
Creates a new associative formula with the given inner formulas.
|
LdoAssociativeFormula(LdoFormula first,
LdoFormula second)
Creates a new associative formula with the two given formulae
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
LdoFormula element) |
boolean |
add(LdoFormula f) |
boolean |
addAll(Collection<? extends LdoFormula> c) |
boolean |
addAll(int index,
Collection<? extends LdoFormula> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
net.sf.tweety.commons.Signature |
createEmptySignature() |
boolean |
equals(Object obj) |
LdoFormula |
get(int index) |
Set<LdoArgument> |
getAtoms() |
List<LdoFormula> |
getFormulas() |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula> |
getFormulas(Class<C> cls) |
Set<LdoFormula> |
getLiterals()
Returns all literals, i.e.
|
Set<net.sf.tweety.logics.pl.syntax.PropositionalPredicate> |
getPredicates() |
DungSignature |
getSignature() |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<LdoFormula> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<LdoFormula> |
listIterator() |
ListIterator<LdoFormula> |
listIterator(int index) |
LdoFormula |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
LdoFormula |
set(int index,
LdoFormula element) |
int |
size() |
List<LdoFormula> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
String |
toString() |
clone, combineWithAnd, combineWithOr, complement, getDividers, getPredicateCls, getUniformProbability, isLiteralfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getPredicateCls, isLiteralreplaceAll, sort, spliteratorparallelStream, removeIf, streamprotected net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport<LdoFormula> support
public LdoAssociativeFormula()
public LdoAssociativeFormula(Collection<? extends LdoFormula> formulas)
formulas - a collection of formulas.public LdoAssociativeFormula(LdoFormula first, LdoFormula second)
first - a propositional formula.second - a propositional formula.public Set<net.sf.tweety.logics.pl.syntax.PropositionalPredicate> getPredicates()
getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetPredicates in class LdoFormulapublic List<LdoFormula> getFormulas()
getFormulas in interface net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<LdoFormula>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<LdoFormula>public Set<LdoArgument> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetAtoms in class LdoFormulapublic Set<LdoFormula> getLiterals()
LdoFormulagetLiterals in class LdoFormulapublic DungSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in class LdoFormulapublic net.sf.tweety.commons.Signature createEmptySignature()
createEmptySignature in interface net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridgepublic int hashCode()
hashCode in interface Collection<LdoFormula>hashCode in interface List<LdoFormula>hashCode in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulahashCode in class LdoFormulapublic boolean equals(Object obj)
equals in interface Collection<LdoFormula>equals in interface List<LdoFormula>equals in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaequals in class LdoFormulapublic boolean add(LdoFormula f)
add in interface Collection<LdoFormula>add in interface List<LdoFormula>public boolean addAll(Collection<? extends LdoFormula> c)
addAll in interface Collection<LdoFormula>addAll in interface List<LdoFormula>public void clear()
clear in interface Collection<LdoFormula>clear in interface List<LdoFormula>public boolean contains(Object o)
contains in interface Collection<LdoFormula>contains in interface List<LdoFormula>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<LdoFormula>containsAll in interface List<LdoFormula>public boolean isEmpty()
isEmpty in interface Collection<LdoFormula>isEmpty in interface List<LdoFormula>public Iterator<LdoFormula> iterator()
iterator in interface Iterable<LdoFormula>iterator in interface Collection<LdoFormula>iterator in interface List<LdoFormula>public boolean remove(Object o)
remove in interface Collection<LdoFormula>remove in interface List<LdoFormula>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<LdoFormula>removeAll in interface List<LdoFormula>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<LdoFormula>retainAll in interface List<LdoFormula>public int size()
size in interface Collection<LdoFormula>size in interface List<LdoFormula>public Object[] toArray()
toArray in interface Collection<LdoFormula>toArray in interface List<LdoFormula>public Object[] toArray(Object[] a)
toArray in interface Collection<LdoFormula>toArray in interface List<LdoFormula>public void add(int index,
LdoFormula element)
add in interface List<LdoFormula>public boolean addAll(int index,
Collection<? extends LdoFormula> c)
addAll in interface List<LdoFormula>public LdoFormula get(int index)
get in interface List<LdoFormula>public int indexOf(Object o)
indexOf in interface List<LdoFormula>public int lastIndexOf(Object o)
lastIndexOf in interface List<LdoFormula>public ListIterator<LdoFormula> listIterator()
listIterator in interface List<LdoFormula>public ListIterator<LdoFormula> listIterator(int index)
listIterator in interface List<LdoFormula>public LdoFormula remove(int index)
remove in interface List<LdoFormula>public LdoFormula set(int index, LdoFormula element)
set in interface List<LdoFormula>public List<LdoFormula> subList(int fromIndex, int toIndex)
subList in interface List<LdoFormula>Copyright © 2018. All rights reserved.