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
ConstructorsConstructorDescriptionExcludeTwoValuedSubinterpretationsIterator(List<Interpretation> interpretations) Constructs a newExcludeTwoValuedSubinterpretationsIteratorthat 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, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ExcludeTwoValuedSubinterpretationsIterator
Constructs a newExcludeTwoValuedSubinterpretationsIteratorthat iterates over a list of interpretations, excluding two-valued subinterpretations according to a specific order and structure.- Parameters:
interpretations- A list ofInterpretationobjects 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:
hasNextin interfaceIterator<Interpretation>
-
next
- Specified by:
nextin interfaceIterator<Interpretation>
-