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 Summary
ConstructorsConstructorDescriptionDefaultDungTheoryGenerator(int numberOfArguments, double attackProbability) Creates a new generator with the given parameters.Creates a new generator with the given parameters. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
DefaultDungTheoryGenerator
Creates a new generator with the given parameters.- Parameters:
params- some generation parameters.
-
DefaultDungTheoryGenerator
public DefaultDungTheoryGenerator(int numberOfArguments, double attackProbability) Creates a new generator with the given parameters.- Parameters:
numberOfArguments- the number of arguments.attackProbability- the probability that there is an attack between any two arguments
-
-
Method Details
-
next
- Specified by:
nextin interfaceBeliefSetIterator<Argument,DungTheory> - Specified by:
nextin interfaceDungTheoryGenerator- Specified by:
nextin interfaceIterator<DungTheory>
-
next
Description copied from interface:DungTheoryGeneratorGenerates a new Dung theory where the given argument is enforced to be in the grounded extension- Specified by:
nextin 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:DungTheoryGeneratorSet the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.- Specified by:
setSeedin interfaceDungTheoryGenerator- Parameters:
seed- some seed.
-
toString
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceBeliefSetIterator<Argument,DungTheory> - Specified by:
hasNextin interfaceDungTheoryGenerator- Specified by:
hasNextin interfaceIterator<DungTheory>
-