net.sourceforge.jasa.report
Class StrategyPayoffReport

java.lang.Object
  extended by net.sourceforge.jasa.report.AbstractAuctionReport
      extended by net.sourceforge.jasa.report.AbstractMarketStatsReport
          extended by net.sourceforge.jasa.report.DynamicSurplusReport
              extended by net.sourceforge.jasa.report.PayoffReport
                  extended by net.sourceforge.jasa.report.StrategyPayoffReport
All Implemented Interfaces:
java.io.Serializable, AuctionReport

public class StrategyPayoffReport
extends PayoffReport

A historicalDataReport that lists the ratio of actual to theoretical profits of each strategy being played in the market. Note that strategies are identified by their class, so two agents configured with the same class of strategy, but with different parameters, will be grouped together.

See Also:
Serialized Form
 

Field Summary
 
Fields inherited from class net.sourceforge.jasa.report.PayoffReport
table
 
Fields inherited from class net.sourceforge.jasa.report.DynamicSurplusReport
efficiency, equilibriaStats, P_DEF_BASE, P_QUANTITY, quantity, VAR_EFFICIENCY
 
Fields inherited from class net.sourceforge.jasa.report.AbstractAuctionReport
auction
 
Constructor Summary
StrategyPayoffReport()
           
 
Method Summary
 java.lang.Object getKey(AbstractTradingAgent agent)
          Map an agent onto a group.
 java.lang.String getKeyName()
          Return user-friendly description of the space of groups.
 java.lang.String getReportText()
           
 
Methods inherited from class net.sourceforge.jasa.report.PayoffReport
calculate, getMeanPayoff, getNumberOfAgents, getPayoffDistribution, getProfits, getVariableBindings, initialise, produceUserOutput
 
Methods inherited from class net.sourceforge.jasa.report.DynamicSurplusReport
calculateTotalEquilibriumSurplus, calculateTotalProfits, compute, equilibriumSurplus, getEfficiency, getEquilibriumProfits, getQuantity, reset, setAuction, setQuantity, updateStats
 
Methods inherited from class net.sourceforge.jasa.report.AbstractMarketStatsReport
eventOccurred
 
Methods inherited from class net.sourceforge.jasa.report.AbstractAuctionReport
getAuction, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrategyPayoffReport

public StrategyPayoffReport()
Method Detail

getKey

public java.lang.Object getKey(AbstractTradingAgent agent)
Description copied from class: PayoffReport
Map an agent onto a group.

Specified by:
getKey in class PayoffReport
Parameters:
agent - The agent to map from.
Returns:
An object representing the grouping of this agent.

getKeyName

public java.lang.String getKeyName()
Description copied from class: PayoffReport
Return user-friendly description of the space of groups.

Specified by:
getKeyName in class PayoffReport
Returns:
A string describing the grouping of this historicalDataReport.

getReportText

public java.lang.String getReportText()
Specified by:
getReportText in class PayoffReport