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
Modifier and Type | Field and Description |
---|---|
private int |
runs
The number of simulation runs.
|
private java.util.Map<AgentGenerator<T,R>,java.util.List<java.lang.Double>> |
utilities
all utilities.
|
private java.util.Map<AgentGenerator<T,R>,java.lang.Integer> |
wins
The number of wins of each agent generator.
|
Constructor and Description |
---|
SimulationResult(java.util.List<AgentGenerator<T,R>> agentGenerators)
Creates a new SimulationResult for the given set of agent generators.
|
Modifier and Type | Method and 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.
|
private int runs
private java.util.Map<AgentGenerator<T extends Agent,R extends MultiAgentSystem<T>>,java.lang.Integer> wins
private java.util.Map<AgentGenerator<T extends Agent,R extends MultiAgentSystem<T>>,java.util.List<java.lang.Double>> utilities
public SimulationResult(java.util.List<AgentGenerator<T,R>> agentGenerators)
agentGenerators
- a set of agent generators.public void addEntry(AgentGenerator<T,R> winner, java.util.Map<AgentGenerator<T,R>,java.lang.Double> utilities)
winner
- the winner of the run.utilities
- the utilities of each agent.public java.lang.String display()
public java.lang.String csvDisplay()