Package org.tweetyproject.agents.sim
Interface MultiAgentSystemGenerator<T extends Agent,S extends MultiAgentSystem<T>>
- Type Parameters:
T
- The type of the agent in the multi-agent system.S
- The type of the multi-agent system.
- All Known Implementing Classes:
GroundedGameGenerator
,LotteryGameGenerator
public interface MultiAgentSystemGenerator<T extends Agent,S extends MultiAgentSystem<T>>
This interface defines a generator for multi-agent systems within a simulation framework.
It provides methods for generating a new multi-agent system and for setting a seed to
ensure reproducibility across different runs of the simulation.
- Author:
- Matthias Thimm
-
Method Summary
Modifier and TypeMethodDescriptiongenerate
(SimulationParameters params) Generates a new multi-agent system.void
setSeed
(long seed) Set the seed for the generation.
-
Method Details
-
generate
Generates a new multi-agent system.- Parameters:
params
- this object can be used for sharing parameters across the generating components of a simulation.- Returns:
- a multi-agent system.
-
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.
-