public abstract class AssociativeFOLFormula extends FolFormula implements net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<net.sf.tweety.logics.commons.syntax.RelationalFormula>, net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridge
| Modifier and Type | Field and Description |
|---|---|
protected net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport<net.sf.tweety.logics.commons.syntax.RelationalFormula> |
support
This helper class implements most of the common functionality of an associative
formula, so the implementation can delegate the method calls to the support
class.
|
| Constructor and Description |
|---|
AssociativeFOLFormula()
Creates a new (empty) associative formula.
|
AssociativeFOLFormula(Collection<? extends net.sf.tweety.logics.commons.syntax.RelationalFormula> formulas)
Creates a new associative formula with the given inner formulas.
|
AssociativeFOLFormula(net.sf.tweety.logics.commons.syntax.RelationalFormula first,
net.sf.tweety.logics.commons.syntax.RelationalFormula second)
Creates a new associative formula with the two given formulae
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
net.sf.tweety.logics.commons.syntax.RelationalFormula element) |
boolean |
add(net.sf.tweety.logics.commons.syntax.RelationalFormula e) |
boolean |
addAll(Collection<? extends net.sf.tweety.logics.commons.syntax.RelationalFormula> c) |
boolean |
addAll(int index,
Collection<? extends net.sf.tweety.logics.commons.syntax.RelationalFormula> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
containsQuantifier() |
net.sf.tweety.commons.Signature |
createEmptySignature() |
boolean |
equals(Object obj) |
net.sf.tweety.logics.commons.syntax.RelationalFormula |
get(int index) |
Set<FOLAtom> |
getAtoms() |
List<net.sf.tweety.logics.commons.syntax.RelationalFormula> |
getFormulas() |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula> |
getFormulas(Class<C> cls) |
Set<net.sf.tweety.logics.commons.syntax.Functor> |
getFunctors() |
Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> |
getPredicates() |
Set<net.sf.tweety.logics.commons.syntax.Variable> |
getQuantifierVariables() |
Set<net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms() |
<C extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getTerms(Class<C> cls) |
Set<net.sf.tweety.logics.commons.syntax.Variable> |
getUnboundVariables() |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isClosed() |
boolean |
isClosed(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
boolean |
isEmpty() |
boolean |
isLiteral() |
boolean |
isWellBound() |
boolean |
isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables) |
Iterator<net.sf.tweety.logics.commons.syntax.RelationalFormula> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<net.sf.tweety.logics.commons.syntax.RelationalFormula> |
listIterator() |
ListIterator<net.sf.tweety.logics.commons.syntax.RelationalFormula> |
listIterator(int index) |
net.sf.tweety.logics.commons.syntax.RelationalFormula |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
net.sf.tweety.logics.commons.syntax.RelationalFormula |
set(int index,
net.sf.tweety.logics.commons.syntax.RelationalFormula element) |
int |
size() |
List<net.sf.tweety.logics.commons.syntax.RelationalFormula> |
subList(int fromIndex,
int toIndex) |
AssociativeFOLFormula |
substitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> termMap) |
AssociativeFOLFormula |
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[] a) |
String |
toString() |
clone, collapseAssociativeFormulas, combineWithAnd, combineWithOr, complement, getSignature, getUniformProbability, isDnf, toDnf, toNnfallGroundInstances, allSubstitutions, containsTermsOfType, exchange, getFormula, getPredicateCls, getSatisfactionRatio, isGround, isWellFormedfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getPredicateClsreplaceAll, sort, spliteratorparallelStream, removeIf, streamprotected net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport<net.sf.tweety.logics.commons.syntax.RelationalFormula> support
public AssociativeFOLFormula()
public AssociativeFOLFormula(net.sf.tweety.logics.commons.syntax.RelationalFormula first,
net.sf.tweety.logics.commons.syntax.RelationalFormula second)
first - a relational formula.second - a relational formula.public AssociativeFOLFormula(Collection<? extends net.sf.tweety.logics.commons.syntax.RelationalFormula> formulas)
formulas - a collection of formulas.public net.sf.tweety.commons.Signature createEmptySignature()
createEmptySignature in interface net.sf.tweety.logics.commons.syntax.AssociativeFormulaSupport.AssociativeSupportBridgepublic Set<net.sf.tweety.logics.commons.syntax.Functor> getFunctors()
getFunctors in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic boolean containsQuantifier()
containsQuantifier in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic Set<net.sf.tweety.logics.commons.syntax.Variable> getUnboundVariables()
getUnboundVariables in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic boolean isClosed()
isClosed in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic boolean isClosed(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables)
isClosed in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic boolean isWellBound()
isWellBound in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic boolean isWellBound(Set<net.sf.tweety.logics.commons.syntax.Variable> boundVariables)
isWellBound in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulapublic boolean isLiteral()
isLiteral in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic Set<net.sf.tweety.logics.commons.syntax.Variable> getQuantifierVariables()
getQuantifierVariables in interface net.sf.tweety.logics.commons.syntax.interfaces.QuantifiedFormulagetQuantifierVariables in class FolFormulapublic List<net.sf.tweety.logics.commons.syntax.RelationalFormula> getFormulas()
getFormulas in interface net.sf.tweety.logics.commons.syntax.interfaces.AssociativeFormula<net.sf.tweety.logics.commons.syntax.RelationalFormula>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<net.sf.tweety.logics.commons.syntax.RelationalFormula>public Set<FOLAtom> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetAtoms in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic 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 Set<? extends net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulapublic AssociativeFOLFormula substitute(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> v, net.sf.tweety.logics.commons.syntax.interfaces.Term<?> t)
substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulasubstitute in class FolFormulapublic AssociativeFOLFormula substitute(Map<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>,? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> termMap)
substitute in interface net.sf.tweety.logics.commons.syntax.interfaces.ComplexLogicalFormulasubstitute in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic String toString()
toString in class net.sf.tweety.logics.commons.syntax.RelationalFormulapublic int hashCode()
hashCode in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>hashCode in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>hashCode in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulahashCode in class Objectpublic boolean equals(Object obj)
equals in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>equals in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>equals in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaequals in class Objectpublic boolean add(net.sf.tweety.logics.commons.syntax.RelationalFormula e)
add in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>add in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public boolean addAll(Collection<? extends net.sf.tweety.logics.commons.syntax.RelationalFormula> c)
addAll in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>addAll in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public void clear()
clear in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>clear in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public boolean contains(Object o)
contains in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>contains in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>containsAll in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public boolean isEmpty()
isEmpty in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>isEmpty in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public Iterator<net.sf.tweety.logics.commons.syntax.RelationalFormula> iterator()
public boolean remove(Object o)
remove in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>remove in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>removeAll in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>retainAll in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public int size()
size in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>size in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public Object[] toArray()
toArray in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>toArray in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public <T> T[] toArray(T[] a)
toArray in interface Collection<net.sf.tweety.logics.commons.syntax.RelationalFormula>toArray in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public void add(int index,
net.sf.tweety.logics.commons.syntax.RelationalFormula element)
public boolean addAll(int index,
Collection<? extends net.sf.tweety.logics.commons.syntax.RelationalFormula> c)
public net.sf.tweety.logics.commons.syntax.RelationalFormula get(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public ListIterator<net.sf.tweety.logics.commons.syntax.RelationalFormula> listIterator()
listIterator in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public ListIterator<net.sf.tweety.logics.commons.syntax.RelationalFormula> listIterator(int index)
listIterator in interface List<net.sf.tweety.logics.commons.syntax.RelationalFormula>public net.sf.tweety.logics.commons.syntax.RelationalFormula remove(int index)
public net.sf.tweety.logics.commons.syntax.RelationalFormula set(int index,
net.sf.tweety.logics.commons.syntax.RelationalFormula element)
Copyright © 2018. All rights reserved.