Package net.sf.tweety.agents.sim
Interface AgentGenerator<T extends Agent,S extends MultiAgentSystem<T>>
-
- Type Parameters:
T- The actual agent type.S- The actual MAS type.
- All Known Implementing Classes:
DummyAgentGenerator,GroundedGameAgentGenerator,GroundedGameT1AgentGenerator,GroundedGameT2AgentGenerator,GroundedGameT3AgentGenerator,ProbabilisticLotteryAgentGenerator,RandomLotteryAgentGenerator,UtilityBasedAgentGenerator
public interface AgentGenerator<T extends Agent,S extends MultiAgentSystem<T>>This interface defines an agent template that is used to generate agents following some common characteristics.- Author:
- Matthias Thimm
-
-
Method Summary
Modifier and Type Method Description Tgenerate(S mas, SimulationParameters params)Generates a new agent for the given multi-agent system.voidsetSeed(long seed)Set the seed for the generation.
-
-
-
Method Detail
-
generate
T generate(S mas, SimulationParameters params)
Generates a new agent for the given multi-agent system.- 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
void setSeed(long seed)
Set the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.- Parameters:
seed- some seed.
-
-