Class Extension<T extends ArgumentationFramework<Argument>>
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<T,Argument>
org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation<T>
org.tweetyproject.arg.dung.semantics.Extension<T>
- Type Parameters:
T
- The type of argumentation framework
- All Implemented Interfaces:
Comparable<Extension<T>>
,Iterable<Argument>
,Collection<Argument>
,Interpretation<T,
,Argument> Node
- Direct Known Subclasses:
ExecutableExtension
public class Extension<T extends ArgumentationFramework<Argument>>
extends AbstractArgumentationInterpretation<T>
implements Collection<Argument>, Comparable<Extension<T>>, Node
This class models a (possible) extension of a Dung theory, i.e. a set of arguments.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionCreates a new empty extension.Extension
(Collection<? extends Argument> arguments) Creates a new extension with the given set of arguments. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends Argument> arg0) void
clear()
int
boolean
boolean
containsAll
(Collection<?> arg0) boolean
getArgumentsOfStatus
(ArgumentStatus status) Returns all arguments that have the given status in this interpretation.int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> arg0) boolean
retainAll
(Collection<?> arg0) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] arg0) toString()
Methods inherited from class org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
satisfies, satisfies
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
Extension
public Extension()Creates a new empty extension. -
Extension
Creates a new extension with the given set of arguments.- Parameters:
arguments
- a set of arguments
-
-
Method Details
-
toString
- Specified by:
toString
in classAbstractArgumentationInterpretation<T extends ArgumentationFramework<Argument>>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<T extends ArgumentationFramework<Argument>>
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceCollection<T extends ArgumentationFramework<Argument>>
- Overrides:
equals
in classObject
-
getArgumentsOfStatus
Description copied from class:AbstractArgumentationInterpretation
Returns all arguments that have the given status in this interpretation.- Specified by:
getArgumentsOfStatus
in classAbstractArgumentationInterpretation<T extends ArgumentationFramework<Argument>>
- Parameters:
status
- the status of the arguments to be returned.- Returns:
- the set of arguments with the given status.
-
add
- Specified by:
add
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
addAll
- Specified by:
addAll
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
contains
- Specified by:
contains
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
iterator
- Specified by:
iterator
in interfaceCollection<T extends ArgumentationFramework<Argument>>
- Specified by:
iterator
in interfaceIterable<T extends ArgumentationFramework<Argument>>
-
remove
- Specified by:
remove
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
size
public int size()- Specified by:
size
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
toArray
- Specified by:
toArray
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArray
in interfaceCollection<T extends ArgumentationFramework<Argument>>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends ArgumentationFramework<Argument>>
-