Package org.tweetyproject.logics.pl.util
Class EnumeratingIterator
java.lang.Object
org.tweetyproject.logics.pl.util.EnumeratingIterator
- All Implemented Interfaces:
Iterator<PlBeliefSet>
,BeliefSetIterator<PlFormula,
PlBeliefSet>
- Author:
- mthimm
-
Constructor Summary
ConstructorsConstructorDescriptionEnumeratingIterator
(PlSignature signature) Creates a new sampler for the given signatureEnumeratingIterator
(PlSignature signature, boolean joinSemanticVariants) Creates a new sampler for the given signature -
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
-
EnumeratingIterator
Creates a new sampler for the given signature- Parameters:
signature
- some signature
-
EnumeratingIterator
Creates a new sampler for the given signature- Parameters:
signature
- some signaturejoinSemanticVariants
- whether semantical variants of the same formula should be considered as distinct (="false").
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceBeliefSetIterator<PlFormula,
PlBeliefSet> - Specified by:
hasNext
in interfaceIterator<PlBeliefSet>
-
next
- Specified by:
next
in interfaceBeliefSetIterator<PlFormula,
PlBeliefSet> - Specified by:
next
in interfaceIterator<PlBeliefSet>
-