Class UtilityBasedAgentGenerator
java.lang.Object
org.tweetyproject.agents.dialogues.lotteries.sim.UtilityBasedAgentGenerator
- All Implemented Interfaces:
- AgentGenerator<AbstractLotteryAgent,- LotteryGameSystem> 
public class UtilityBasedAgentGenerator
extends Object
implements AgentGenerator<AbstractLotteryAgent,LotteryGameSystem> 
Generates baseline lottery agents.
- Author:
- Matthias Thimm
- 
Constructor SummaryConstructorsConstructorDescriptionCreate UtilityBasedAgentGenerator with name
- 
Method SummaryModifier and TypeMethodDescriptiongenerate(LotteryGameSystem mas, SimulationParameters params) Generates a new agent for the given multi-agent system.voidsetSeed(long seed) Set the seed for the generation.toString()
- 
Constructor Details- 
UtilityBasedAgentGeneratorCreate UtilityBasedAgentGenerator with name- Parameters:
- name- the name
 
 
- 
- 
Method Details- 
generateDescription copied from interface:AgentGeneratorGenerates a new agent for the given multi-agent system.- Specified by:
- generatein interface- AgentGenerator<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
 
- 
setSeedpublic 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 interface- AgentGenerator<AbstractLotteryAgent,- LotteryGameSystem> 
- Parameters:
- seed- some seed.
 
- 
toString
 
-