Class LotteryGameGenerator
java.lang.Object
org.tweetyproject.agents.dialogues.lotteries.sim.LotteryGameGenerator
- All Implemented Interfaces:
MultiAgentSystemGenerator<AbstractLotteryAgent,
LotteryGameSystem>
public class LotteryGameGenerator
extends Object
implements MultiAgentSystemGenerator<AbstractLotteryAgent,LotteryGameSystem>
Generates lottery games.
- Author:
- Matthias Thimm
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Key for the simulation parameter which refers to the argument of the dialogue.static final int
Key for the simulation parameter which refers to the dummy agent's theory.static final int
Key for the simulation parameter which refers to the probability function for the actual lottery agent.static final int
Key for the simulation parameter which refers to the utility function for the actual lottery agent.static final int
Key for the simulation parameter which refers to the semantics used.static final int
Key for the simulation parameter which refers to the universal theory generated. -
Constructor Summary
ConstructorDescriptionLotteryGameGenerator
(DungTheoryGenerator gen, Semantics semantics) Creates a new game generator.LotteryGameGenerator
(DungTheoryGenerator gen, Semantics semantics, boolean ensureArg) Creates a new game generator. -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(SimulationParameters params) Generates a new multi-agent system.void
setSeed
(long seed) Set the seed for the generation.
-
Field Details
-
PARAM_UNIVERSALTHEORY
public static final int PARAM_UNIVERSALTHEORYKey for the simulation parameter which refers to the universal theory generated.- See Also:
-
PARAM_ARGUMENT
public static final int PARAM_ARGUMENTKey for the simulation parameter which refers to the argument of the dialogue.- See Also:
-
PARAM_DUMMY_THEORY
public static final int PARAM_DUMMY_THEORYKey for the simulation parameter which refers to the dummy agent's theory.- See Also:
-
PARAM_LOT_PROB
public static final int PARAM_LOT_PROBKey for the simulation parameter which refers to the probability function for the actual lottery agent.- See Also:
-
PARAM_LOT_UTIL
public static final int PARAM_LOT_UTILKey for the simulation parameter which refers to the utility function for the actual lottery agent.- See Also:
-
PARAM_SEM
public static final int PARAM_SEMKey for the simulation parameter which refers to the semantics used.- See Also:
-
-
Constructor Details
-
LotteryGameGenerator
Creates a new game generator.- Parameters:
gen
- for generating Dung theories.semantics
- the semantics used.
-
LotteryGameGenerator
Creates a new game generator.- Parameters:
gen
- for generating Dung theories.semantics
- the semantics used.ensureArg
- whether the theories generated should ensure one specific argument to be skeptically inferred.
-
-
Method Details
-
generate
Description copied from interface:MultiAgentSystemGenerator
Generates a new multi-agent system.- Specified by:
generate
in interfaceMultiAgentSystemGenerator<AbstractLotteryAgent,
LotteryGameSystem> - 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:MultiAgentSystemGenerator
Set the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.- Specified by:
setSeed
in interfaceMultiAgentSystemGenerator<AbstractLotteryAgent,
LotteryGameSystem> - Parameters:
seed
- some seed.
-