Class ProbabilisticLotteryAgentGenerator
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.lotteries.sim.ProbabilisticLotteryAgentGenerator
-
- All Implemented Interfaces:
AgentGenerator<AbstractLotteryAgent,LotteryGameSystem>
public class ProbabilisticLotteryAgentGenerator extends java.lang.Object implements AgentGenerator<AbstractLotteryAgent,LotteryGameSystem>
Generates lottery agents.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description ProbabilisticLotteryAgentGenerator(java.lang.String name)
ProbabilisticLotteryAgentGenerator(java.lang.String name, byte updatestrategy)
ProbabilisticLotteryAgentGenerator(java.lang.String name, byte updatestrategy, double stickynesscoefficient)
-
Method Summary
Modifier and Type Method Description AbstractLotteryAgent
generate(LotteryGameSystem mas, SimulationParameters params)
Generates a new agent for the given multi-agent system.void
setSeed(long seed)
Set the seed for the generation.java.lang.String
toString()
-
-
-
Constructor Detail
-
ProbabilisticLotteryAgentGenerator
public ProbabilisticLotteryAgentGenerator(java.lang.String name)
-
ProbabilisticLotteryAgentGenerator
public ProbabilisticLotteryAgentGenerator(java.lang.String name, byte updatestrategy)
-
ProbabilisticLotteryAgentGenerator
public ProbabilisticLotteryAgentGenerator(java.lang.String name, byte updatestrategy, double stickynesscoefficient)
-
-
Method Detail
-
generate
public AbstractLotteryAgent generate(LotteryGameSystem mas, SimulationParameters params)
Description copied from interface:AgentGenerator
Generates a new agent for the given multi-agent system.- Specified by:
generate
in interfaceAgentGenerator<AbstractLotteryAgent,LotteryGameSystem>
- Parameters:
mas
- some multi-agent system.params
- this object can be used for sharing parameters across the generating components of a simulation.- Returns:
- an agent for type T
-
setSeed
public void setSeed(long seed)
Description copied from interface:AgentGenerator
Set the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.- Specified by:
setSeed
in interfaceAgentGenerator<AbstractLotteryAgent,LotteryGameSystem>
- Parameters:
seed
- some seed.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-