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 Summary
ConstructorsConstructorDescriptionDefault constructorAbaExtension(Collection<Assumption<T>> assumptions) Creates a new extension with the given assumptions. -
Method Summary
Modifier 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.AbstractInterpretation
satisfiesMethods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
AbaExtension
public AbaExtension()Default constructor -
AbaExtension
Creates a new extension with the given assumptions.- Parameters:
assumptions- a set of assumptions
-
-
Method Details
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given formula.- Specified by:
satisfiesin interfaceInterpretation<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.
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfiesin interfaceInterpretation<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.
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends Formula>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends Formula>
-
contains
- Specified by:
containsin interfaceCollection<T extends Formula>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends Formula>
-
toArray
public <R> R[] toArray(R[] a) - Specified by:
toArrayin interfaceCollection<T extends Formula>
-
add
- Specified by:
addin interfaceCollection<T extends Formula>
-
remove
- Specified by:
removein interfaceCollection<T extends Formula>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends Formula>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends Formula>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends Formula>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends Formula>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends Formula>
-
hashCode
-
equals
-
toString
-