Class SetExplanation
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<DungTheory, Argument>
org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation<DungTheory>
org.tweetyproject.arg.explanations.semantics.Explanation
org.tweetyproject.arg.explanations.semantics.SetExplanation
- All Implemented Interfaces:
Comparable<Explanation>,Iterable<Argument>,Collection<Argument>,Interpretation<DungTheory, Argument>
Models a set-based representation for explanations for the acceptance of some argument
- Author:
- Lars Bengel
-
Constructor Summary
ConstructorsConstructorDescriptionSetExplanation(Argument argument, Collection<Argument> arguments) Instantiates a new explanation for the given argument -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends Argument> c) voidclear()intbooleanbooleancontainsAll(Collection<?> c) Extension<?> getArgumentsOfStatus(ArgumentStatus status) Returns all arguments that have the given status in this interpretation.Returns the set-based explanation.booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class org.tweetyproject.arg.explanations.semantics.Explanation
getArgumentMethods inherited from class org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
satisfies, satisfiesMethods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
SetExplanation
Instantiates a new explanation for the given argument- Parameters:
argument- some argumentarguments- the explaining set of arguments
-
-
Method Details
-
getSetExplanation
Description copied from class:ExplanationReturns the set-based explanation.- Specified by:
getSetExplanationin classExplanation- Returns:
- the explanation as a collection of arguments
-
compareTo
- Specified by:
compareToin interfaceComparable<Explanation>
-
size
public int size()- Specified by:
sizein interfaceCollection<Argument>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Argument>
-
contains
- Specified by:
containsin interfaceCollection<Argument>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<Argument>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Argument>
-
add
- Specified by:
addin interfaceCollection<Argument>
-
remove
- Specified by:
removein interfaceCollection<Argument>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Argument>
-
addAll
- Specified by:
addAllin interfaceCollection<Argument>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Argument>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Argument>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Argument>
-
getArgumentsOfStatus
Description copied from class:AbstractArgumentationInterpretationReturns all arguments that have the given status in this interpretation.- Specified by:
getArgumentsOfStatusin classAbstractArgumentationInterpretation<DungTheory>- Parameters:
status- the status of the arguments to be returned.- Returns:
- the set of arguments with the given status.
-
toString
- Specified by:
toStringin classAbstractArgumentationInterpretation<DungTheory>
-