Class GameSimulator<S extends AbstractProtocol & GameProtocol,​T extends Agent,​R extends MultiAgentSystem<T>>

  • Type Parameters:
    T - The actual type of agents.
    S - The actual type of protocols.
    R - The actual type of the multi-agent system.

    public class GameSimulator<S extends AbstractProtocol & GameProtocol,​T extends Agent,​R extends MultiAgentSystem<T>>
    extends java.lang.Object
    This class implements a game simulator. It takes some agent and multi-agent system generators and runs a series of simulations. In each simulation the winner of the game is determined and recorded.
    Author:
    Matthias Thimm
    • Method Summary

      Modifier and Type Method Description
      SimulationResult<S,​T,​R> run​(int repetitions)
      Simulates the game for the given number of repetitions and returns a map indicating which agent generator won how often.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait