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
ConstructorsConstructorDescriptionCreates a new empty extension.Extension(Collection<? extends Argument> arguments) Creates a new extension with the given set of arguments. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends Argument> arg0) voidclear()intbooleanbooleancontainsAll(Collection<?> arg0) booleangetArgumentsOfStatus(ArgumentStatus status) Returns all arguments that have the given status in this interpretation.inthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> arg0) booleanretainAll(Collection<?> arg0) intsize()Object[]toArray()<T> T[]toArray(T[] arg0) toString()Methods inherited from class org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
satisfies, satisfiesMethods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods 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:
toStringin classAbstractArgumentationInterpretation<T extends ArgumentationFramework<Argument>>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T extends ArgumentationFramework<Argument>>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<T extends ArgumentationFramework<Argument>>- Overrides:
equalsin classObject
-
getArgumentsOfStatus
Description copied from class:AbstractArgumentationInterpretationReturns all arguments that have the given status in this interpretation.- Specified by:
getArgumentsOfStatusin 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:
addin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
contains
- Specified by:
containsin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
iterator
- Specified by:
iteratorin interfaceCollection<T extends ArgumentationFramework<Argument>>- Specified by:
iteratorin interfaceIterable<T extends ArgumentationFramework<Argument>>
-
remove
- Specified by:
removein interfaceCollection<T extends ArgumentationFramework<Argument>>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends ArgumentationFramework<Argument>>
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<T extends ArgumentationFramework<Argument>>
-
compareTo
- Specified by:
compareToin interfaceComparable<T extends ArgumentationFramework<Argument>>
-