Class DialogueTrace<S,T extends Collection<S>>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<T>
org.tweetyproject.agents.dialogues.DialogueTrace<S,T>
- Type Parameters:
S
- The type of elements in a moveT
- The type of moves in this dialgoue trace
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,Deque<T>
,List<T>
,Queue<T>
Objects of this class represent traces of dialogue in an argumentation game,
ie. sequences of moves (e.g. sets of arguments or sets of formulas).
- Author:
- Tjitze Rienstra, Matthias Thimm
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAndCopy
(T newMove) Returns a copy of this trace and adds the given move to this copy.Returns all elements mentioned in this dialogue trace.int
size()
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSequentialList
iterator
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, subList
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
DialogueTrace
public DialogueTrace()
-
-
Method Details
-
getElements
Returns all elements mentioned in this dialogue trace.- Returns:
- a set of S.
-
addAndCopy
Returns a copy of this trace and adds the given move to this copy.- Parameters:
newMove
- Move to add to copy.- Returns:
- Copy of this trace, with newMove appended.
-
size
public int size()- Specified by:
size
in interfaceCollection<S>
- Specified by:
size
in interfaceDeque<S>
- Specified by:
size
in interfaceList<S>
- Overrides:
size
in classLinkedList<T extends Collection<S>>
-