Package net.sf.tweety.arg.dung.util
Class PodlaszewskiCaminadaDungTheoryGenerator
- java.lang.Object
-
- net.sf.tweety.arg.dung.util.PodlaszewskiCaminadaDungTheoryGenerator
-
- All Implemented Interfaces:
java.util.Iterator<DungTheory>,DungTheoryGenerator,BeliefSetIterator<Argument,DungTheory>
public class PodlaszewskiCaminadaDungTheoryGenerator extends java.lang.Object implements DungTheoryGenerator
This generator generates abstract argumentation frameworks following the schema described in "Strong Admissibility Revisited" (COMMA2014) by Martin Caminda, following and idea by Mikolay Podlaszewski. These frameworks are supposedly hard for computing grounded semantics.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private intnumComponentsThe number of components in the generated frameworks.
-
Constructor Summary
Constructors Constructor Description PodlaszewskiCaminadaDungTheoryGenerator(int numComponents)Creates a new generator that generates frameworks of the given numComponents >= 0.
-
Method Summary
Modifier and Type Method Description booleanhasNext()DungTheorynext()DungTheorynext(Argument arg)Generates a new Dung theory where the given argument is enforced to be in the grounded extensionvoidsetSeed(long seed)Set the seed for the generation.
-
-
-
Constructor Detail
-
PodlaszewskiCaminadaDungTheoryGenerator
public PodlaszewskiCaminadaDungTheoryGenerator(int numComponents)
Creates a new generator that generates frameworks of the given numComponents >= 0. More precisely, the number of arguments in these frameworks have 4 + numComponents*4 arguments.- Parameters:
numComponents- the number of components
-
-
Method Detail
-
next
public DungTheory next()
- Specified by:
nextin interfaceBeliefSetIterator<Argument,DungTheory>- Specified by:
nextin interfaceDungTheoryGenerator- Specified by:
nextin interfacejava.util.Iterator<DungTheory>
-
next
public DungTheory next(Argument arg)
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.
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceBeliefSetIterator<Argument,DungTheory>- Specified by:
hasNextin interfaceDungTheoryGenerator- Specified by:
hasNextin interfacejava.util.Iterator<DungTheory>
-
-