Class ExcludeSubinterpretationsIterator

java.lang.Object
org.tweetyproject.arg.adf.util.ExcludeSubinterpretationsIterator
All Implemented Interfaces:
Iterator<Interpretation>

public class ExcludeSubinterpretationsIterator extends Object implements Iterator<Interpretation>
Iterates through all interpretations except the ones equal to or more specific than the provided ones.
Author:
Mathias Hofer
  • Constructor Details

    • ExcludeSubinterpretationsIterator

      public ExcludeSubinterpretationsIterator(List<Interpretation> interpretations)
      Constructs a new ExcludeSubinterpretationsIterator that iterates over a list of interpretations, excluding subinterpretations according to a specific order and structure.

      The constructor initializes the iterator by ordering the interpretations based on the first interpretation in the list. It then builds a tree-like structure rooted in an InnerNode, where each interpretation is added to the tree. This structure allows efficient exclusion of subinterpretations during iteration.

      Parameters:
      interpretations - A list of Interpretation objects to be iterated over.
      Throws:
      NoSuchElementException - if the list of interpretations is empty.
  • Method Details