Package org.tweetyproject.arg.dung.util
Class DefaultDungTheoryGenerator
java.lang.Object
org.tweetyproject.arg.dung.util.DefaultDungTheoryGenerator
- All Implemented Interfaces:
Iterator<DungTheory>
,DungTheoryGenerator
,BeliefSetIterator<Argument,
DungTheory>
Implements a customizable Dung theory generator.
- Author:
- Matthias Thimm
-
Constructor Details
-
DefaultDungTheoryGenerator
Creates a new generator with the given parameters.- Parameters:
params
- some generation parameters.
-
-
Method Details
-
next
- Specified by:
next
in interfaceBeliefSetIterator<Argument,
DungTheory> - Specified by:
next
in interfaceDungTheoryGenerator
- Specified by:
next
in interfaceIterator<DungTheory>
-
next
Description copied from interface:DungTheoryGenerator
Generates a new Dung theory where the given argument is enforced to be in the grounded extension- Specified by:
next
in interfaceDungTheoryGenerator
- Parameters:
arg
- an argument that is enforced to be in the grounded extension of the generated theory.- Returns:
- a Dung theory,
-
setSeed
public void setSeed(long seed) Description copied from interface:DungTheoryGenerator
Set the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.- Specified by:
setSeed
in interfaceDungTheoryGenerator
- Parameters:
seed
- some seed.
-
toString
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceBeliefSetIterator<Argument,
DungTheory> - Specified by:
hasNext
in interfaceDungTheoryGenerator
- Specified by:
hasNext
in interfaceIterator<DungTheory>
-