Class GroundedGameGenerator
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.sim.GroundedGameGenerator
-
- All Implemented Interfaces:
MultiAgentSystemGenerator<ArguingAgent,GroundedGameSystem>
public class GroundedGameGenerator extends java.lang.Object implements MultiAgentSystemGenerator<ArguingAgent,GroundedGameSystem>
Generates grounded games.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private DungTheoryGeneratorgenfor generating Dung theories.private static org.slf4j.LoggerlogLoggerstatic intPARAM_ARGUMENTKey for the simulation parameter which refers to the argument of the dialogue.static intPARAM_UNIVERSALTHEORYKey for the simulation parameter which refers to the universal theory generated.private java.util.RandomrandomRandom numbers generator.private doubleviewPercentageConThe percentage of the arguments known to the CON agent.private doubleviewPercentageProThe percentage of the arguments known to the PRO agent.
-
Constructor Summary
Constructors Constructor Description GroundedGameGenerator(DungTheoryGenerator gen, double viewPercentagePro, double viewPercentageCon)Creates a new game generator.
-
Method Summary
Modifier and Type Method Description GroundedGameSystemgenerate(SimulationParameters params)Generates a new multi-agent system.voidsetSeed(long seed)Set the seed for the generation.
-
-
-
Field Detail
-
log
private static org.slf4j.Logger log
Logger
-
PARAM_UNIVERSALTHEORY
public static final int PARAM_UNIVERSALTHEORY
Key for the simulation parameter which refers to the universal theory generated.- See Also:
- Constant Field Values
-
PARAM_ARGUMENT
public static final int PARAM_ARGUMENT
Key for the simulation parameter which refers to the argument of the dialogue.- See Also:
- Constant Field Values
-
viewPercentagePro
private double viewPercentagePro
The percentage of the arguments known to the PRO agent.
-
viewPercentageCon
private double viewPercentageCon
The percentage of the arguments known to the CON agent.
-
gen
private DungTheoryGenerator gen
for generating Dung theories.
-
random
private java.util.Random random
Random numbers generator.
-
-
Constructor Detail
-
GroundedGameGenerator
public GroundedGameGenerator(DungTheoryGenerator gen, double viewPercentagePro, double viewPercentageCon)
Creates a new game generator.- Parameters:
gen- for generating Dung theories.viewPercentagePro- the percentage of the arguments known to the PRO agentviewPercentageCon- the percentage of the arguments known to the CON agent
-
-
Method Detail
-
generate
public GroundedGameSystem generate(SimulationParameters params)
Description copied from interface:MultiAgentSystemGeneratorGenerates a new multi-agent system.- Specified by:
generatein interfaceMultiAgentSystemGenerator<ArguingAgent,GroundedGameSystem>- Parameters:
params- this object can be used for sharing parameters across the generating components of a simulation.- Returns:
- a multi-agent system.
-
setSeed
public void setSeed(long seed)
Description copied from interface:MultiAgentSystemGeneratorSet the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.- Specified by:
setSeedin interfaceMultiAgentSystemGenerator<ArguingAgent,GroundedGameSystem>- Parameters:
seed- some seed.
-
-