Class GroundedGameAgentGenerator
java.lang.Object
org.tweetyproject.agents.dialogues.oppmodels.sim.GroundedGameAgentGenerator
- All Implemented Interfaces:
 AgentGenerator<ArguingAgent,GroundedGameSystem> 
- Direct Known Subclasses:
 GroundedGameT1AgentGenerator,GroundedGameT2AgentGenerator,GroundedGameT3AgentGenerator
public abstract class GroundedGameAgentGenerator
extends Object
implements AgentGenerator<ArguingAgent,GroundedGameSystem> 
Generates new arguing agents for a grounded game. Encapsulates common 
 characteristics for specific models.
- Author:
 - Matthias Thimm
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new agent generator. - 
Method Summary
Modifier and TypeMethodDescriptionbooleangenerate(GroundedGameSystem mas, SimulationParameters params) Generates a new agent for the given multi-agent system.Returns the faction of the generated agents.inthashCode()voidsetSeed(long seed) Set the seed for the generation.toString() 
- 
Constructor Details
- 
GroundedGameAgentGenerator
Creates a new agent generator.- Parameters:
 faction- the type of the agents to be generated.
 
 - 
 - 
Method Details
- 
getFaction
Returns the faction of the generated agents.- Returns:
 - the faction of the generated agents.
 
 - 
generate
Description copied from interface:AgentGeneratorGenerates a new agent for the given multi-agent system.- Specified by:
 generatein interfaceAgentGenerator<ArguingAgent,GroundedGameSystem> - 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
 
 - 
toString
 - 
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<ArguingAgent,GroundedGameSystem> - Parameters:
 seed- some seed.
 - 
hashCode
 - 
equals
 
 -