Interface AgentGenerator<T extends Agent,​S extends MultiAgentSystem<T>>

    • Method Summary

      Modifier and Type Method Description
      T generate​(S mas, SimulationParameters params)
      Generates a new agent for the given multi-agent system.
      void setSeed​(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.