Package net.sf.tweety.arg.aba.semantics
Class AbaExtension<T extends net.sf.tweety.commons.Formula>
- java.lang.Object
-
- net.sf.tweety.commons.AbstractInterpretation<AbaTheory<T>,Assumption<T>>
-
- net.sf.tweety.arg.aba.semantics.AbaExtension<T>
-
- Type Parameters:
T- The type of formulas
- All Implemented Interfaces:
Iterable<Assumption<T>>,Collection<Assumption<T>>,net.sf.tweety.commons.Interpretation<AbaTheory<T>,Assumption<T>>
public class AbaExtension<T extends net.sf.tweety.commons.Formula> extends net.sf.tweety.commons.AbstractInterpretation<AbaTheory<T>,Assumption<T>> implements Collection<Assumption<T>>
This class models an ABA Extension, meaning a set of assumptions.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description AbaExtension()Default constructorAbaExtension(Collection<Assumption<T>> assumptions)Creates a new extension with the given assumptions.
-
Method Summary
Modifier and Type Method Description booleanadd(Assumption<T> e)booleanaddAll(Collection<? extends Assumption<T>> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object obj)inthashCode()booleanisEmpty()Iterator<Assumption<T>>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)booleansatisfies(AbaTheory<T> beliefBase)booleansatisfies(Assumption<T> formula)intsize()Object[]toArray()<R> R[]toArray(R[] a)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
AbaExtension
public AbaExtension()
Default constructor
-
AbaExtension
public AbaExtension(Collection<Assumption<T>> assumptions)
Creates a new extension with the given assumptions.- Parameters:
assumptions- a set of assumptions
-
-
Method Detail
-
satisfies
public boolean satisfies(Assumption<T> formula) throws IllegalArgumentException
- Specified by:
satisfiesin interfacenet.sf.tweety.commons.Interpretation<AbaTheory<T extends net.sf.tweety.commons.Formula>,Assumption<T extends net.sf.tweety.commons.Formula>>- Throws:
IllegalArgumentException
-
satisfies
public boolean satisfies(AbaTheory<T> beliefBase) throws IllegalArgumentException
- Specified by:
satisfiesin interfacenet.sf.tweety.commons.Interpretation<AbaTheory<T extends net.sf.tweety.commons.Formula>,Assumption<T extends net.sf.tweety.commons.Formula>>- Throws:
IllegalArgumentException
-
size
public int size()
- Specified by:
sizein interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
iterator
public Iterator<Assumption<T>> iterator()
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
toArray
public <R> R[] toArray(R[] a)
- Specified by:
toArrayin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
add
public boolean add(Assumption<T> e)
- Specified by:
addin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
addAll
public boolean addAll(Collection<? extends Assumption<T>> c)
- Specified by:
addAllin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T extends net.sf.tweety.commons.Formula>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<T extends net.sf.tweety.commons.Formula>- Overrides:
hashCodein classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCollection<T extends net.sf.tweety.commons.Formula>- Overrides:
equalsin classObject
-
-