Package org.tweetyproject.logics.pl.util
Class SyntacticEnumeratingIterator
java.lang.Object
org.tweetyproject.logics.pl.util.SyntacticEnumeratingIterator
- All Implemented Interfaces:
- Iterator<PlBeliefSet>,- BeliefSetIterator<PlFormula,- PlBeliefSet> 
public class SyntacticEnumeratingIterator
extends Object
implements BeliefSetIterator<PlFormula,PlBeliefSet> 
Generates all syntactic variations of knowledge bases
- Author:
- Matthias Thimm
- 
Constructor SummaryConstructorsConstructorDescriptionSyntacticEnumeratingIterator(PlSignature signature, int formulaLength, File pathToTmp, boolean deleteTmp) Creates a new sampler.
- 
Method SummaryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining, remove
- 
Constructor Details- 
SyntacticEnumeratingIteratorpublic SyntacticEnumeratingIterator(PlSignature signature, int formulaLength, File pathToTmp, boolean deleteTmp) Creates a new sampler.- Parameters:
- signature- the signature for formulas of the generated belief set.
- formulaLength- the maximal length of each formula (each proposition, negation, conjunction, and disjunction counts one).
- pathToTmp- the path to a folder where intermediate results (all formulas up to the required length) are stored
- deleteTmp- if "true" then the temporary folder is cleaned after each sample (it is recommended to set this to "false" to speed up sampling)
 
 
- 
- 
Method Details- 
hasNextpublic boolean hasNext()- Specified by:
- hasNextin interface- BeliefSetIterator<PlFormula,- PlBeliefSet> 
- Specified by:
- hasNextin interface- Iterator<PlBeliefSet>
 
- 
next- Specified by:
- nextin interface- BeliefSetIterator<PlFormula,- PlBeliefSet> 
- Specified by:
- nextin interface- Iterator<PlBeliefSet>
 
 
-