Class DialogueTrace<S,T extends Collection<S>>

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

public class DialogueTrace<S,T extends Collection<S>> extends 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:
  • Constructor Details

    • DialogueTrace

      public DialogueTrace()
  • Method Details

    • getElements

      public 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 Collection<S>
      Specified by:
      size in interface Deque<S>
      Specified by:
      size in interface List<S>
      Overrides:
      size in class LinkedList<T extends Collection<S>>