Class PriestWorldIterator
java.lang.Object
org.tweetyproject.logics.translators.adfrevision.PriestWorldIterator
- All Implemented Interfaces:
Iterator<PriestWorldAdapted>,InterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted>
public class PriestWorldIterator
extends Object
implements InterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted>
This class iterates effectively over all interpretation sets worlds of a given signature.
Adapted from class "PossibleWorldIterator" for the use of Three Valued Logic
- Author:
- Jonas Schumacher
-
Constructor Summary
ConstructorsConstructorDescriptionCreates new iterator.Creates new iterator for the given signature. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()next()voidremove()reset()Initializes a new reseted iterator.reset(Collection<? extends Formula> formulas) Initializes a new reseted iterator for the given signature derived from the given set of formulas.Initializes a new reseted iterator for the given signature.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PriestWorldIterator
public PriestWorldIterator()Creates new iterator. -
PriestWorldIterator
Creates new iterator for the given signature.- Parameters:
sig- some signature
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceInterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted>- Specified by:
hasNextin interfaceIterator<PriestWorldAdapted>
-
next
- Specified by:
nextin interfaceInterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted>- Specified by:
nextin interfaceIterator<PriestWorldAdapted>
-
remove
public void remove()- Specified by:
removein interfaceInterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted>- Specified by:
removein interfaceIterator<PriestWorldAdapted>
-
reset
Description copied from interface:InterpretationIteratorInitializes a new reseted iterator.- Specified by:
resetin interfaceInterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted>- Returns:
- a reseted iterator.
-
reset
Description copied from interface:InterpretationIteratorInitializes a new reseted iterator for the given signature.- Specified by:
resetin interfaceInterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted>- Parameters:
sig- some signature.- Returns:
- a reseted iterator for the given signature.
-
reset
public InterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted> reset(Collection<? extends Formula> formulas) Description copied from interface:InterpretationIteratorInitializes a new reseted iterator for the given signature derived from the given set of formulas.- Specified by:
resetin interfaceInterpretationIterator<PlFormula, PlBeliefSet, PriestWorldAdapted>- Parameters:
formulas- a set of formulas.- Returns:
- a reseted iterator for the given signature derived from the given set of formulas.
-