net.sourceforge.jabm.report
Class PayoffMap

java.lang.Object
  extended by net.sourceforge.jabm.report.PayoffMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PayoffMap
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form
 

Field Summary
protected  java.util.LinkedHashMap<Strategy,org.apache.commons.math3.stat.descriptive.SummaryStatistics> payoffs
           
protected  java.util.Vector<Strategy> strategyIndex
           
 
Constructor Summary
PayoffMap()
           
PayoffMap(java.util.List<Strategy> strategies)
           
PayoffMap(java.util.List<Strategy> strategies, org.springframework.beans.factory.ObjectFactory<org.apache.commons.math3.stat.descriptive.SummaryStatistics> summaryStatisticsFactory)
           
 
Method Summary
 java.lang.Object clone()
           
 double getMeanPayoff(int i)
           
 double getMeanPayoff(Strategy strategy)
           
 org.apache.commons.math3.stat.descriptive.SummaryStatistics getPayoffDistribution(int i)
           
 org.apache.commons.math3.stat.descriptive.SummaryStatistics getPayoffDistribution(Strategy strategy)
           
 java.util.Set<Strategy> getStrategies()
           
 void initialise()
           
 int size()
           
 java.lang.String toString()
           
 void updatePayoff(Strategy strategy, double fitness)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

payoffs

protected java.util.LinkedHashMap<Strategy,org.apache.commons.math3.stat.descriptive.SummaryStatistics> payoffs

strategyIndex

protected java.util.Vector<Strategy> strategyIndex
Constructor Detail

PayoffMap

public PayoffMap()

PayoffMap

public PayoffMap(java.util.List<Strategy> strategies,
                 org.springframework.beans.factory.ObjectFactory<org.apache.commons.math3.stat.descriptive.SummaryStatistics> summaryStatisticsFactory)

PayoffMap

public PayoffMap(java.util.List<Strategy> strategies)
Method Detail

updatePayoff

public void updatePayoff(Strategy strategy,
                         double fitness)

getStrategies

public java.util.Set<Strategy> getStrategies()

getMeanPayoff

public double getMeanPayoff(Strategy strategy)

getPayoffDistribution

public org.apache.commons.math3.stat.descriptive.SummaryStatistics getPayoffDistribution(Strategy strategy)

getPayoffDistribution

public org.apache.commons.math3.stat.descriptive.SummaryStatistics getPayoffDistribution(int i)

getMeanPayoff

public double getMeanPayoff(int i)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

size

public int size()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

initialise

public void initialise()