public class AgentsStatistics
extends java.lang.Object
| Constructor and Description |
|---|
AgentsStatistics(java.util.List<AgentStatistics> stats) |
| Modifier and Type | Method and Description |
|---|---|
AgentStatistics |
get(java.lang.String agentname)
See aso
#withStatistics(String, double, double) |
java.util.List<AgentStatistics> |
getStatistics() |
AgentsStatistics |
withStatistics(AgentStatistics stat) |
AgentsStatistics |
withStatistics(java.lang.String agent,
double undiscounted,
double discounted,
double nashdist,
double welfare,
double paretoDist)
Update the statistic of given agent.
|
AgentsStatistics |
withStats(AgentStatistics stats)
Adds or replaces statistic.
|
public AgentsStatistics(java.util.List<AgentStatistics> stats)
public AgentsStatistics withStats(AgentStatistics stats)
stats - public AgentStatistics get(java.lang.String agentname)
#withStatistics(String, double, double)agentname - the agent for which statistics are needed.public java.util.List<AgentStatistics> getStatistics()
public AgentsStatistics withStatistics(java.lang.String agent, double undiscounted, double discounted, double nashdist, double welfare, double paretoDist)
agent - undiscounted - discounted - welfare - nashdist - public AgentsStatistics withStatistics(AgentStatistics stat)
stat -