Class SimulationResult<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 SimulationResult<S extends AbstractProtocol & GameProtocol,​T extends Agent,​R extends MultiAgentSystem<T>>
    extends java.lang.Object
    Instances of this class summarize information on a performed simulation.
    Author:
    Matthias Thimm
    • Constructor Summary

      Constructors 
      Constructor Description
      SimulationResult​(java.util.List<AgentGenerator<T,​R>> agentGenerators)
      Creates a new SimulationResult for the given set of agent generators.
    • Method Summary

      Modifier and Type Method Description
      void addEntry​(AgentGenerator<T,​R> winner, java.util.Map<AgentGenerator<T,​R>,​java.lang.Double> utilities)
      Adds a new entry of a simulation run.
      java.lang.String csvDisplay()
      Returns a CSV representation of the result.
      java.lang.String display()
      Gives a pretty print of the results.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimulationResult

        public SimulationResult​(java.util.List<AgentGenerator<T,​R>> agentGenerators)
        Creates a new SimulationResult for the given set of agent generators.
        Parameters:
        agentGenerators - a set of agent generators.
    • Method Detail

      • addEntry

        public void addEntry​(AgentGenerator<T,​R> winner,
                             java.util.Map<AgentGenerator<T,​R>,​java.lang.Double> utilities)
        Adds a new entry of a simulation run.
        Parameters:
        winner - the winner of the run.
        utilities - the utilities of each agent.
      • display

        public java.lang.String display()
        Gives a pretty print of the results.
        Returns:
        a pretty print of the results.
      • csvDisplay

        public java.lang.String csvDisplay()
        Returns a CSV representation of the result.
        Returns:
        a CSV representation of the result.