Class DialogueTrace<S,​T extends java.util.Collection<S>>

  • Type Parameters:
    S - The type of elements in a move
    T - The type of moves in this dialgoue trace
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.Deque<T>, java.util.List<T>, java.util.Queue<T>

    public class DialogueTrace<S,​T extends java.util.Collection<S>>
    extends java.util.LinkedList<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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DialogueTrace()  
    • Method Summary

      Modifier and Type Method Description
      DialogueTrace<S,​T> addAndCopy​(T newMove)
      Returns a copy of this trace and adds the given move to this copy.
      java.util.Collection<S> getElements()
      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 class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.util.Deque

        iterator
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
    • Constructor Detail

      • DialogueTrace

        public DialogueTrace()
    • Method Detail

      • getElements

        public java.util.Collection<S> getElements()
        Returns all elements mentioned in this dialogue trace.
        Returns:
        a set of S.
      • addAndCopy

        public DialogueTrace<S,​T> addAndCopy​(T newMove)
        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 interface java.util.Collection<S>
        Specified by:
        size in interface java.util.Deque<S>
        Specified by:
        size in interface java.util.List<S>
        Overrides:
        size in class java.util.LinkedList<T extends java.util.Collection<S>>