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
ConstructorDescriptionDefault constructorAbaExtension
(Collection<Assumption<T>> assumptions) Creates a new extension with the given assumptions. -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(Assumption<T> e) boolean
addAll
(Collection<? extends Assumption<T>> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) boolean
Checks whether this interpretation satisfies the given knowledge base.boolean
satisfies
(Assumption<T> formula) Checks whether this interpretation satisfies the given formula.int
size()
Object[]
toArray()
<R> R[]
toArray
(R[] a) toString()
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
Methods 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:Interpretation
Checks whether this interpretation satisfies the given formula.- Specified by:
satisfies
in 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:Interpretation
Checks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfies
in 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:
size
in interfaceCollection<T extends Formula>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T extends Formula>
-
contains
- Specified by:
contains
in interfaceCollection<T extends Formula>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<T extends Formula>
-
toArray
public <R> R[] toArray(R[] a) - Specified by:
toArray
in interfaceCollection<T extends Formula>
-
add
- Specified by:
add
in interfaceCollection<T extends Formula>
-
remove
- Specified by:
remove
in interfaceCollection<T extends Formula>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T extends Formula>
-
addAll
- Specified by:
addAll
in interfaceCollection<T extends Formula>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T extends Formula>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T extends Formula>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T extends Formula>
-
hashCode
-
equals
-
toString
-