public class FileDungTheoryGenerator extends Object implements DungTheoryGenerator
| Constructor and Description |
|---|
FileDungTheoryGenerator(File[] files,
net.sf.tweety.commons.Parser<DungTheory,?> parser,
boolean loop)
Creates a new theory generator for the given files, which
can be parsed by the given parser.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
DungTheory |
next() |
DungTheory |
next(Argument arg)
Generates a new Dung theory where the given argument
is enforced to be in the grounded extension
|
void |
setSeed(long seed)
Set the seed for the generation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic FileDungTheoryGenerator(File[] files, net.sf.tweety.commons.Parser<DungTheory,?> parser, boolean loop)
files - an array of files.parser - a parser for the files.loop - whether to loop the files indefinitely.public boolean hasNext()
hasNext in interface Iterator<DungTheory>hasNext in interface DungTheoryGeneratorhasNext in interface net.sf.tweety.commons.BeliefSetIterator<Argument,DungTheory>public DungTheory next()
next in interface Iterator<DungTheory>next in interface DungTheoryGeneratornext in interface net.sf.tweety.commons.BeliefSetIterator<Argument,DungTheory>public DungTheory next(Argument arg)
DungTheoryGeneratornext in interface DungTheoryGeneratorarg - an argument that is enforced
to be in the grounded extension of the generated theory.public void setSeed(long seed)
DungTheoryGeneratorsetSeed in interface DungTheoryGeneratorseed - some seed.Copyright © 2019. All rights reserved.