Package org.tweetyproject.arg.adf.util
Class ExcludeTwoValuedSubinterpretationsIterator
java.lang.Object
org.tweetyproject.arg.adf.util.ExcludeTwoValuedSubinterpretationsIterator
- All Implemented Interfaces:
Iterator<Interpretation>
public class ExcludeTwoValuedSubinterpretationsIterator
extends Object
implements Iterator<Interpretation>
Iterates through all two-valued(!) interpretations except the ones equal to
or more specific than the provided ones.
- Author:
- Mathias Hofer
-
Constructor Summary
ConstructorDescriptionExcludeTwoValuedSubinterpretationsIterator
(List<Interpretation> interpretations) Constructs a newExcludeTwoValuedSubinterpretationsIterator
that iterates over a list of interpretations, excluding two-valued subinterpretations according to a specific order and structure. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ExcludeTwoValuedSubinterpretationsIterator
Constructs a newExcludeTwoValuedSubinterpretationsIterator
that iterates over a list of interpretations, excluding two-valued subinterpretations according to a specific order and structure.- Parameters:
interpretations
- A list ofInterpretation
objects to be iterated over. The list must not be null or empty.- Throws:
IllegalArgumentException
- if the list of interpretations is null or empty.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<Interpretation>
-
next
- Specified by:
next
in interfaceIterator<Interpretation>
-