Class SequenceExplanation
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.SequenceExplanation
- All Implemented Interfaces:
Comparable<Explanation>,Iterable<Collection<? extends Argument>>,Collection<Collection<? extends Argument>>,List<Collection<? extends Argument>>,SequencedCollection<Collection<? extends Argument>>,Interpretation<DungTheory, Argument>
public class SequenceExplanation
extends Explanation
implements List<Collection<? extends Argument>>
Models a sequence-based representation for explanations for the acceptance of some argument
- Author:
- Lars Bengel
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceExplanation(Argument argument, SerialisationSequence sequence) Instantiates an explanation for the given argument -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, Collection<? extends Argument> element) booleanadd(Collection<? extends Argument> arguments) booleanaddAll(int index, Collection<? extends Collection<? extends Argument>> c) booleanaddAll(Collection<? extends Collection<? extends Argument>> c) voidclear()intbooleanbooleancontainsAll(Collection<?> c) Collection<? extends Argument> get(int index) Extension<?> getArgumentsOfStatus(ArgumentStatus status) Returns all arguments that have the given status in this interpretation.List<Collection<? extends Argument>> returns the sequence representation of the explanationReturns the set-based explanation.intbooleanisEmpty()Iterator<Collection<? extends Argument>> iterator()intListIterator<Collection<? extends Argument>> ListIterator<Collection<? extends Argument>> listIterator(int index) Collection<? extends Argument> remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) Collection<? extends Argument> set(int index, Collection<? extends Argument> element) intsize()List<Collection<? extends Argument>> subList(int fromIndex, int toIndex) 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
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
SequenceExplanation
Instantiates an explanation for the given argument- Parameters:
argument- some argumentsequence- the explaining sequence of sets of arguments
-
-
Method Details
-
getSequence
returns the sequence representation of the explanation- Returns:
- sequence representation of the explanation
-
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>
-
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>
-
size
public int size()- Specified by:
sizein interfaceCollection<Collection<? extends Argument>>- Specified by:
sizein interfaceList<Collection<? extends Argument>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Collection<? extends Argument>>- Specified by:
isEmptyin interfaceList<Collection<? extends Argument>>
-
contains
- Specified by:
containsin interfaceCollection<Collection<? extends Argument>>- Specified by:
containsin interfaceList<Collection<? extends Argument>>
-
iterator
- Specified by:
iteratorin interfaceCollection<Collection<? extends Argument>>- Specified by:
iteratorin interfaceIterable<Collection<? extends Argument>>- Specified by:
iteratorin interfaceList<Collection<? extends Argument>>
-
toArray
- Specified by:
toArrayin interfaceCollection<Collection<? extends Argument>>- Specified by:
toArrayin interfaceList<Collection<? extends Argument>>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Collection<? extends Argument>>- Specified by:
toArrayin interfaceList<Collection<? extends Argument>>
-
add
- Specified by:
addin interfaceCollection<Collection<? extends Argument>>- Specified by:
addin interfaceList<Collection<? extends Argument>>
-
remove
- Specified by:
removein interfaceCollection<Collection<? extends Argument>>- Specified by:
removein interfaceList<Collection<? extends Argument>>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Collection<? extends Argument>>- Specified by:
containsAllin interfaceList<Collection<? extends Argument>>
-
addAll
- Specified by:
addAllin interfaceCollection<Collection<? extends Argument>>- Specified by:
addAllin interfaceList<Collection<? extends Argument>>
-
addAll
- Specified by:
addAllin interfaceList<Collection<? extends Argument>>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Collection<? extends Argument>>- Specified by:
removeAllin interfaceList<Collection<? extends Argument>>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Collection<? extends Argument>>- Specified by:
retainAllin interfaceList<Collection<? extends Argument>>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Collection<? extends Argument>>- Specified by:
clearin interfaceList<Collection<? extends Argument>>
-
get
- Specified by:
getin interfaceList<Collection<? extends Argument>>
-
set
- Specified by:
setin interfaceList<Collection<? extends Argument>>
-
add
- Specified by:
addin interfaceList<Collection<? extends Argument>>
-
remove
- Specified by:
removein interfaceList<Collection<? extends Argument>>
-
indexOf
- Specified by:
indexOfin interfaceList<Collection<? extends Argument>>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Collection<? extends Argument>>
-
listIterator
- Specified by:
listIteratorin interfaceList<Collection<? extends Argument>>
-
listIterator
- Specified by:
listIteratorin interfaceList<Collection<? extends Argument>>
-
subList
- Specified by:
subListin interfaceList<Collection<? extends Argument>>
-