Package org.tweetyproject.arg.dung.util
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
ConstructorDescriptionKwtDungTheoryGenerator
(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, wait
Methods 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:
hasNext
in interfaceBeliefSetIterator<Argument,
DungTheory> - Specified by:
hasNext
in interfaceDungTheoryGenerator
- Specified by:
hasNext
in interfaceIterator<DungTheory>
-
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.
-