Class KwtDungTheoryGenerator
java.lang.Object
org.tweetyproject.arg.dung.util.KwtDungTheoryGenerator
- All Implemented Interfaces:
Iterator<DungTheory>,DungTheoryGenerator,BeliefSetIterator<Argument, DungTheory>
Creates AAFs with a complex structure for tasks
related to skeptical reasoning wrt. preferred semantics,
see [Kuhlmann, Wujek, Thimm, 2022]
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorsConstructorDescriptionKwtDungTheoryGenerator(int num_arguments, int num_skept_arguments, int size_ideal_extension, int num_cred_arguments, int num_pref_exts, double p_ideal_attacked, double p_ideal_attack_back, double p_other_skept_args_attacked, double p_other_skept_args_attack_back, double p_cred_args_attacked, double p_cred_args_attack_back, double p_other_attacks) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
KwtDungTheoryGenerator
public KwtDungTheoryGenerator(int num_arguments, int num_skept_arguments, int size_ideal_extension, int num_cred_arguments, int num_pref_exts, double p_ideal_attacked, double p_ideal_attack_back, double p_other_skept_args_attacked, double p_other_skept_args_attack_back, double p_cred_args_attacked, double p_cred_args_attack_back, double p_other_attacks) - Parameters:
num_arguments- nr of argsnum_skept_arguments- nr of skeptical argssize_ideal_extension- size of ideal extensionnum_cred_arguments- nr of credulous argsnum_pref_exts- nums of preferred extensionsp_ideal_attacked- idel attackedp_ideal_attack_back- ideal aattcked backp_other_skept_args_attacked- skeptical attacked backp_other_skept_args_attack_back- skeptical attacked args backp_cred_args_attacked- credulous args attackedp_cred_args_attack_back- creduous args attack backp_other_attacks- other attack
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceBeliefSetIterator<Argument, DungTheory>- Specified by:
hasNextin interfaceDungTheoryGenerator- Specified by:
hasNextin interfaceIterator<DungTheory>
-
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.
-