Class RandomLotteryAgentGenerator
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.lotteries.sim.RandomLotteryAgentGenerator
-
- All Implemented Interfaces:
AgentGenerator<AbstractLotteryAgent,LotteryGameSystem>
public class RandomLotteryAgentGenerator extends java.lang.Object implements AgentGenerator<AbstractLotteryAgent,LotteryGameSystem>
Generates baseline lottery agents.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameThe name of the agents generator by this generator.
-
Constructor Summary
Constructors Constructor Description RandomLotteryAgentGenerator(java.lang.String name)
-
Method Summary
Modifier and Type Method Description AbstractLotteryAgentgenerate(LotteryGameSystem mas, SimulationParameters params)Generates a new agent for the given multi-agent system.voidsetSeed(long seed)Set the seed for the generation.java.lang.StringtoString()
-
-
-
Method Detail
-
generate
public AbstractLotteryAgent generate(LotteryGameSystem mas, SimulationParameters params)
Description copied from interface:AgentGeneratorGenerates a new agent for the given multi-agent system.- Specified by:
generatein 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:AgentGeneratorSet the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.- Specified by:
setSeedin interfaceAgentGenerator<AbstractLotteryAgent,LotteryGameSystem>- Parameters:
seed- some seed.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-