Class AbaExtension<T extends Formula>
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<AbaTheory<T>,Assumption<T>>
org.tweetyproject.arg.aba.semantics.AbaExtension<T>
- Type Parameters:
- T- The type of formulas
- All Implemented Interfaces:
- Iterable<Assumption<T>>,- Collection<Assumption<T>>,- Interpretation<AbaTheory<T>,Assumption<T>>
public class AbaExtension<T extends Formula>
extends AbstractInterpretation<AbaTheory<T>,Assumption<T>>
implements Collection<Assumption<T>>
This class models an ABA Extension, meaning a set of assumptions.
- Author:
- Matthias Thimm
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructorAbaExtension(Collection<Assumption<T>> assumptions)Creates a new extension with the given assumptions.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanadd(Assumption<T> e)booleanaddAll(Collection<? extends Assumption<T>> c)voidclear()booleanbooleancontainsAll(Collection<?> c)booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)booleanChecks whether this interpretation satisfies the given knowledge base.booleansatisfies(Assumption<T> formula)Checks whether this interpretation satisfies the given formula.intsize()Object[]toArray()<R> R[]toArray(R[] a)toString()Methods inherited from class org.tweetyproject.commons.AbstractInterpretationsatisfiesMethods inherited from interface java.util.CollectionparallelStream, removeIf, spliterator, stream, toArray
- 
Constructor Details- 
AbaExtensionpublic AbaExtension()Default constructor
- 
AbaExtensionCreates a new extension with the given assumptions.- Parameters:
- assumptions- a set of assumptions
 
 
- 
- 
Method Details- 
satisfiesDescription copied from interface:InterpretationChecks whether this interpretation satisfies the given formula.- Specified by:
- satisfiesin interface- Interpretation<AbaTheory<T extends Formula>,Assumption<T extends Formula>>
- Parameters:
- formula- a formula .
- Returns:
- "true" if this interpretation satisfies the given formula.
- Throws:
- IllegalArgumentException- if the formula does not correspond to the expected language.
 
- 
satisfiesDescription copied from interface:InterpretationChecks whether this interpretation satisfies the given knowledge base.- Specified by:
- satisfiesin interface- Interpretation<AbaTheory<T extends Formula>,Assumption<T extends Formula>>
- Parameters:
- beliefBase- a knowledge base.
- Returns:
- "true" if this interpretation satisfies the given knowledge base.
- Throws:
- IllegalArgumentException- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
 
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<T extends Formula>
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- Collection<T extends Formula>
 
- 
contains- Specified by:
- containsin interface- Collection<T extends Formula>
 
- 
iterator
- 
toArray- Specified by:
- toArrayin interface- Collection<T extends Formula>
 
- 
toArraypublic <R> R[] toArray(R[] a)- Specified by:
- toArrayin interface- Collection<T extends Formula>
 
- 
add- Specified by:
- addin interface- Collection<T extends Formula>
 
- 
remove- Specified by:
- removein interface- Collection<T extends Formula>
 
- 
containsAll- Specified by:
- containsAllin interface- Collection<T extends Formula>
 
- 
addAll- Specified by:
- addAllin interface- Collection<T extends Formula>
 
- 
removeAll- Specified by:
- removeAllin interface- Collection<T extends Formula>
 
- 
retainAll- Specified by:
- retainAllin interface- Collection<T extends Formula>
 
- 
clearpublic void clear()- Specified by:
- clearin interface- Collection<T extends Formula>
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-