public class GroundedGameGenerator extends java.lang.Object implements MultiAgentSystemGenerator<ArguingAgent,GroundedGameSystem>
| Modifier and Type | Field and Description |
|---|---|
private DungTheoryGenerator |
gen
for generating Dung theories.
|
private static org.slf4j.Logger |
log
Logger
|
static int |
PARAM_ARGUMENT
Key for the simulation parameter which refers to the argument of the dialogue.
|
static int |
PARAM_UNIVERSALTHEORY
Key for the simulation parameter which refers to the universal theory generated.
|
private java.util.Random |
random
Random numbers generator.
|
private double |
viewPercentageCon
The percentage of the arguments known to the CON agent.
|
private double |
viewPercentagePro
The percentage of the arguments known to the PRO agent.
|
| Constructor and Description |
|---|
GroundedGameGenerator(DungTheoryGenerator gen,
double viewPercentagePro,
double viewPercentageCon)
Creates a new game generator.
|
| Modifier and Type | Method and Description |
|---|---|
GroundedGameSystem |
generate(SimulationParameters params)
Generates a new multi-agent system.
|
void |
setSeed(long seed)
Set the seed for the generation.
|
private static org.slf4j.Logger log
public static final int PARAM_UNIVERSALTHEORY
public static final int PARAM_ARGUMENT
private double viewPercentagePro
private double viewPercentageCon
private DungTheoryGenerator gen
private java.util.Random random
public GroundedGameGenerator(DungTheoryGenerator gen, double viewPercentagePro, double viewPercentageCon)
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 agentpublic GroundedGameSystem generate(SimulationParameters params)
MultiAgentSystemGeneratorgenerate in interface MultiAgentSystemGenerator<ArguingAgent,GroundedGameSystem>params - this object can be used for sharing parameters across
the generating components of a simulation.public void setSeed(long seed)
MultiAgentSystemGeneratorsetSeed in interface MultiAgentSystemGenerator<ArguingAgent,GroundedGameSystem>seed - some seed.